From 1da7bc7e465a5462d0e20b040ba51bc45fb9f65a Mon Sep 17 00:00:00 2001 From: Philipp Stephani Date: Mon, 12 Jun 2017 23:35:23 +0200 Subject: [PATCH] Fix off-by-one error * test/data/emacs-module/mod-test.c (emacs_module_init): Fix off-by-one error. --- test/data/emacs-module/mod-test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) \ -- 2.39.2