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

index 111d8e89fd591eb69aa9c6c57c30597283f6db7f..f5ddeb63dca54d753c76d1f6351d494a7ef43aa4 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;