summaryrefslogtreecommitdiff
path: root/py/vstr.c
diff options
context:
space:
mode:
Diffstat (limited to 'py/vstr.c')
-rw-r--r--py/vstr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/py/vstr.c b/py/vstr.c
index 18e6d2d0a..b2e46c89f 100644
--- a/py/vstr.c
+++ b/py/vstr.c
@@ -190,6 +190,7 @@ void vstr_cut_tail(vstr_t *vstr, int len) {
} else {
vstr->len -= len;
}
+ vstr->buf[vstr->len] = 0;
}
void vstr_printf(vstr_t *vstr, const char *fmt, ...) {