summaryrefslogtreecommitdiff
path: root/main/spprintf.c
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2003-02-13 17:17:03 +0000
committerIlia Alshanetsky <iliaa@php.net>2003-02-13 17:17:03 +0000
commit586672fd164c83f9e2fea8edad83716590a0fc33 (patch)
treee5ead78ca9f71f93f4c39052979e45e2d7e59aa1 /main/spprintf.c
parentf0e7b24e6059d6460569f756b92a916c68923061 (diff)
downloadphp-git-586672fd164c83f9e2fea8edad83716590a0fc33.tar.gz
PAD() macro didn't increase the buffer size resulting in loss of the
padding.
Diffstat (limited to 'main/spprintf.c')
-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)