summaryrefslogtreecommitdiff
path: root/ext/standard/formatted_print.c
diff options
context:
space:
mode:
authorMoriyoshi Koizumi <moriyoshi@php.net>2003-05-30 13:49:33 +0000
committerMoriyoshi Koizumi <moriyoshi@php.net>2003-05-30 13:49:33 +0000
commita51ab0fed0a95629a02332abeb5c4846aaaeb86d (patch)
tree062040c76598c744efbf1df9e56ffca685ad749d /ext/standard/formatted_print.c
parent3c0071a2113717fb780b840aa67e95f869944b78 (diff)
downloadphp-git-a51ab0fed0a95629a02332abeb5c4846aaaeb86d.tar.gz
Fixed bug #23894 (sprintf() decimal specifiers problem)
Diffstat (limited to 'ext/standard/formatted_print.c')
-rw-r--r--ext/standard/formatted_print.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/standard/formatted_print.c b/ext/standard/formatted_print.c
index 111d8e89fd..f5ddeb63dc 100644
--- a/ext/standard/formatted_print.c
+++ b/ext/standard/formatted_print.c
@@ -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;