summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorColin Percival <cperciva@FreeBSD.org>2008-08-31 02:19:55 +0000
committerColin Percival <cperciva@FreeBSD.org>2008-08-31 02:19:55 +0000
commitdab3f6aa85ed5477c915e5a23959fff47d26cbad (patch)
treec60fd9f2a47f5e725454b951406cecda8b97a27d /lib
parent680be400a10eb7ce0f295df478be020e8e9d8f86 (diff)
Notes
Diffstat (limited to 'lib')
-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 375d20226fec1..9950f1328115d 100644
--- a/lib/libc/stdio/vfwprintf.c
+++ b/lib/libc/stdio/vfwprintf.c
@@ -384,8 +384,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,