From 57ebc43e562cd1e3918c93b998e5db0c27e3258e Mon Sep 17 00:00:00 2001 From: Justin Ethier Date: Mon, 12 Oct 2015 22:38:09 -0400 Subject: [PATCH] Fix off-by-one error --- runtime.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime.c b/runtime.c index fb4cb665..1c7a81f8 100644 --- a/runtime.c +++ b/runtime.c @@ -891,7 +891,7 @@ object Cyc_list2string(object cont, object lst){ } buf[i] = '\0'; - { make_string_noalloc(str, buf, i - 1); + { make_string_noalloc(str, buf, i); return_closcall1(cont, &str);} }