diff options
| author | Philipp Stephani | 2017-06-12 23:35:23 +0200 |
|---|---|---|
| committer | Philipp Stephani | 2017-06-12 23:36:10 +0200 |
| commit | 1da7bc7e465a5462d0e20b040ba51bc45fb9f65a (patch) | |
| tree | dab78767186da0ab865b8a2c39b80b1728a36564 /test/data | |
| parent | ab2116c9a951cdaf269311a31a8b3da79834742f (diff) | |
| download | emacs-1da7bc7e465a5462d0e20b040ba51bc45fb9f65a.tar.gz emacs-1da7bc7e465a5462d0e20b040ba51bc45fb9f65a.zip | |
Fix off-by-one error
* test/data/emacs-module/mod-test.c (emacs_module_init): Fix
off-by-one error.
Diffstat (limited to 'test/data')
| -rw-r--r-- | test/data/emacs-module/mod-test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/data/emacs-module/mod-test.c b/test/data/emacs-module/mod-test.c index f378db00cd4..5e857c048f0 100644 --- a/test/data/emacs-module/mod-test.c +++ b/test/data/emacs-module/mod-test.c | |||
| @@ -269,7 +269,7 @@ emacs_module_init (struct emacs_runtime *ert) | |||
| 269 | 269 | ||
| 270 | emacs_env *env = ert->get_environment (ert); | 270 | emacs_env *env = ert->get_environment (ert); |
| 271 | 271 | ||
| 272 | if (env->size <= sizeof *env) | 272 | if (env->size < sizeof *env) |
| 273 | return 2; | 273 | return 2; |
| 274 | 274 | ||
| 275 | #define DEFUN(lsym, csym, amin, amax, doc, data) \ | 275 | #define DEFUN(lsym, csym, amin, amax, doc, data) \ |