]> granicus.if.org Git - php/commitdiff
MFH(r-1.67): fixed bug #23894 (sprintf() decimal specifiers problem)
authorMoriyoshi Koizumi <moriyoshi@php.net>
Fri, 30 May 2003 13:50:09 +0000 (13:50 +0000)
committerMoriyoshi Koizumi <moriyoshi@php.net>
Fri, 30 May 2003 13:50:09 +0000 (13:50 +0000)
ext/standard/formatted_print.c

index b9a26d4319be451bff164151cb997cd6dc93e85b..ebf675898a73feaf70d3f205e0488119842451f7 100644 (file)
@@ -185,6 +185,7 @@ php_sprintf_appendstring(char **buffer, int *pos, int *size, char *add,
                        (*buffer)[(*pos)++] = '-';
                        add++;
                        len--;
+                       copy_len--;
                }
                while (npad-- > 0) {
                        (*buffer)[(*pos)++] = padding;