summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Percival <cperciva@FreeBSD.org>2008-08-30 23:10:29 +0000
committerColin Percival <cperciva@FreeBSD.org>2008-08-30 23:10:29 +0000
commit7db84cf35bcecc0a6bb982bdc09fb07738d16ac0 (patch)
treef4e82cb8bdc233120b930a3e66dc46d8071a2d92
parentb320dac2649b6d30c101031996a3a0f06aa13d99 (diff)
Notes
-rw-r--r--lib/libc/stdio/vfwprintf.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libc/stdio/vfwprintf.c b/lib/libc/stdio/vfwprintf.c
index eabdc9ec8dc7..f184b4c209f4 100644
--- a/lib/libc/stdio/vfwprintf.c
+++ b/lib/libc/stdio/vfwprintf.c
@@ -380,8 +380,10 @@ __mbsconv(char *mbsarg, int prec)
}
if (nconv == (size_t)-1 || nconv == (size_t)-2)
return (NULL);
- } else
+ } else {
insize = strlen(mbsarg);
+ nconv = 0;
+ }
/*
* Allocate buffer for the result and perform the conversion,