From: Ilia Alshanetsky Date: Thu, 13 Feb 2003 17:17:03 +0000 (+0000) Subject: PAD() macro didn't increase the buffer size resulting in loss of the X-Git-Tag: RELEASE_0_5~1042 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=586672fd164c83f9e2fea8edad83716590a0fc33;p=php PAD() macro didn't increase the buffer size resulting in loss of the padding. --- 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)