summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main/spprintf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/main/spprintf.c b/main/spprintf.c
index 3727feedfa..8f905d5ebe 100644
--- a/main/spprintf.c
+++ b/main/spprintf.c
@@ -123,6 +123,7 @@
size_t newlen; \
smart_str_alloc(xbuf, (count), 0); \
memset(xbuf->c + xbuf->len, ch, (count)); \
+ xbuf->len += (count); \
} \
} while (0)