summaryrefslogtreecommitdiffstats
path: root/runtime/string.c
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/string.c')
-rw-r--r--runtime/string.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/string.c b/runtime/string.c
index 1f0edbb8..4d5a9c83 100644
--- a/runtime/string.c
+++ b/runtime/string.c
@@ -159,6 +159,7 @@ void _stp_string_cat_cstr (String str1, const char *str2)
num = size;
strncpy (str1->buf + str1->len, str2, num);
str1->len += num;
+ str1->buf[str1->len] = 0;
}
}