aboutsummaryrefslogtreecommitdiff
path: root/py/vstr.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-01-22 23:18:50 +0000
committerDamien George <damien.p.george@gmail.com>2014-01-22 23:18:50 +0000
commitf64086f80f1493c7f5009e99f4bd1fba47332cd3 (patch)
tree74f619fbbc391dfbbf514c98e674a13c02d2dd11 /py/vstr.c
parent452932ace4e0e0741982a8bdfdf6282022e48a6c (diff)
Fix 1 warning and 1 bug.
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, ...) {