From f156c67e34b6eb892769e1312e618e116eba9bed Mon Sep 17 00:00:00 2001 From: Přemysl Janouch Date: Fri, 26 May 2017 01:39:44 +0200 Subject: Simplify ".." --- ell.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ell.c b/ell.c index 850083c..af65e85 100644 --- a/ell.c +++ b/ell.c @@ -1053,10 +1053,8 @@ defn (fn_concatenate) { } buffer_append (&buf, args->value, args->len); } - buffer_append_c (&buf, '\0'); - bool ok = !(ctx->memory_failure |= buf.memory_failure) - && check (ctx, (*result = new_string (buf.s, buf.len - 1))); + && check (ctx, (*result = new_string (buf.s, buf.len))); free (buf.s); return ok; } -- cgit v1.2.3-70-g09d2