diff options
| author | Colin Percival <cperciva@FreeBSD.org> | 2008-08-04 06:55:42 +0000 |
|---|---|---|
| committer | Colin Percival <cperciva@FreeBSD.org> | 2008-08-04 06:55:42 +0000 |
| commit | 22d725b5d7a6bd84cb0e7062858250ae4436cd12 (patch) | |
| tree | 6d9671173aa0f159d0b755b7bf8934d08f2687ab /lib/libc/stdio | |
| parent | cb8330d03640ba3511e15adf39d23d2eaf25dae7 (diff) | |
Notes
Diffstat (limited to 'lib/libc/stdio')
| -rw-r--r-- | lib/libc/stdio/vfwprintf.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libc/stdio/vfwprintf.c b/lib/libc/stdio/vfwprintf.c index 6b4e9b1425fd..dcd0f14ba2fd 100644 --- a/lib/libc/stdio/vfwprintf.c +++ b/lib/libc/stdio/vfwprintf.c @@ -333,8 +333,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, |
