summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPhilipp Stephani <phst@google.com>2017-06-12 23:35:23 +0200
committerPhilipp Stephani <phst@google.com>2017-06-12 23:36:10 +0200
commit1da7bc7e465a5462d0e20b040ba51bc45fb9f65a (patch)
treedab78767186da0ab865b8a2c39b80b1728a36564 /test
parentab2116c9a951cdaf269311a31a8b3da79834742f (diff)
downloademacs-1da7bc7e465a5462d0e20b040ba51bc45fb9f65a.tar.gz
Fix off-by-one error
* test/data/emacs-module/mod-test.c (emacs_module_init): Fix off-by-one error.
Diffstat (limited to 'test')
-rw-r--r--test/data/emacs-module/mod-test.c2
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)
emacs_env *env = ert->get_environment (ert);
- if (env->size <= sizeof *env)
+ if (env->size < sizeof *env)
return 2;
#define DEFUN(lsym, csym, amin, amax, doc, data) \