Fix 1 warning and 1 bug.

This commit is contained in:
Damien George
2014-01-22 23:18:50 +00:00
parent 452932ace4
commit f64086f80f
2 changed files with 2 additions and 1 deletions

View File

@@ -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, ...) {