diff options
author | Marcus Boerger <helly@php.net> | 2006-01-24 20:57:56 +0000 |
---|---|---|
committer | Marcus Boerger <helly@php.net> | 2006-01-24 20:57:56 +0000 |
commit | a372669d4a2cfb45cfd40f42210eee5c0ee971fb (patch) | |
tree | 5a29e88ff91aff44d320528bb753d7a8d9569b21 /main/snprintf.c | |
parent | 0e42375ded43a86794f060d17bcbd722326c9bfe (diff) | |
download | php-git-a372669d4a2cfb45cfd40f42210eee5c0ee971fb.tar.gz |
- Fixed Bug #35978 %n format string specifier wrongly implemented
Diffstat (limited to 'main/snprintf.c')
-rw-r--r-- | main/snprintf.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/main/snprintf.c b/main/snprintf.c index a7e50701ed..caaf3b78c0 100644 --- a/main/snprintf.c +++ b/main/snprintf.c @@ -1015,7 +1015,7 @@ static int format_converter(register buffy * odp, const char *fmt, case 'n': *(va_arg(ap, int *)) = cc; - break; + goto skip_output; /* * Always extract the argument as a "char *" pointer. We @@ -1096,6 +1096,7 @@ fmt_error: if (adjust_width && adjust == LEFT && min_width > s_len) PAD(min_width, s_len, pad_char); } +skip_output: fmt++; } odp->nextb = sp; |