From 09b5023d6f1c83ddefba8ec63a8fda973087cfd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9=20van=20Geldorp?= Date: Thu, 22 Dec 2005 20:41:46 +0000 Subject: [PATCH] Fix nul stripping and get GreatLord of my back ;-) svn path=/trunk/; revision=20303 --- reactos/lib/crt/stdio/vfwprint.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/reactos/lib/crt/stdio/vfwprint.c b/reactos/lib/crt/stdio/vfwprint.c index a6ef0bb67a2..7e0847bacec 100644 --- a/reactos/lib/crt/stdio/vfwprint.c +++ b/reactos/lib/crt/stdio/vfwprint.c @@ -368,7 +368,11 @@ static int numberf(FILE * f, double __n, wchar_t exp_sign, int size, int precis tmp = buf; if ( type & ZEROTRUNC && ((type & SPECIAL) != SPECIAL) ) { j = 0; - while ( j < i && ( *tmp == L'0' || *tmp == L'.' )) { + while ( j < i && *tmp == L'0' ) { + tmp++; + i--; + } + if ( j < i && *tmp == L'.' ) { tmp++; i--; }