From: Philipp Stephani Date: Mon, 12 Jun 2017 21:35:23 +0000 (+0200) Subject: Fix off-by-one error X-Git-Tag: emacs-26.0.90~521^2~96 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1da7bc7e465a5462d0e20b040ba51bc45fb9f65a;p=emacs.git Fix off-by-one error * test/data/emacs-module/mod-test.c (emacs_module_init): Fix off-by-one error. --- 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) \