fix append_fmt appending a null byte

This commit is contained in:
dzaima 2021-05-29 15:02:36 +03:00
parent aa9cd8f514
commit 510de71095

View File

@ -121,7 +121,7 @@ NOINLINE B append_fmt(B s, char* p, ...) {
char buf[30];
char c;
char* lp = p;
while ((c = *p++) != 0) {
while (*p != 0) { c = *p++;
if (c!='%') continue;
if (lp!=p-1) s = vec_join(s, fromUTF8(lp, p-1-lp));
switch(c = *p++) { default: printf("Unknown format character '%c'", c); UD;