]> granicus.if.org Git - php/commitdiff
PAD() macro didn't increase the buffer size resulting in loss of the
authorIlia Alshanetsky <iliaa@php.net>
Thu, 13 Feb 2003 17:17:03 +0000 (17:17 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Thu, 13 Feb 2003 17:17:03 +0000 (17:17 +0000)
padding.

main/spprintf.c

index 3727feedfaea6db88e5fefb559fa3773cb480853..8f905d5ebe8da4ea4d781329f4f2437e159cbdf4 100644 (file)
                size_t newlen;                                                          \
                smart_str_alloc(xbuf, (count), 0);                      \
                memset(xbuf->c + xbuf->len, ch, (count));       \
+               xbuf->len += (count);                           \
        }                                                                                               \
 } while (0)