aboutsummaryrefslogtreecommitdiff
path: root/ell.c
diff options
context:
space:
mode:
Diffstat (limited to 'ell.c')
-rwxr-xr-xell.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ell.c b/ell.c
index ef02127..e245958 100755
--- a/ell.c
+++ b/ell.c
@@ -1024,8 +1024,8 @@ defn (fn_concatenate) {
}
buffer_append_c (&buf, '\0');
- bool ok = !(ctx->memory_failure = buf.memory_failure)
- && check (ctx, (*result = new_string (buf.s, buf.len)));
+ bool ok = !(ctx->memory_failure |= buf.memory_failure)
+ && check (ctx, (*result = new_string (buf.s, buf.len - 1)));
free (buf.s);
return ok;
}