Skip to content

Commit 09b5023

Browse files
author
Gé van Geldorp
committed
Fix nul stripping and get GreatLord of my back ;-)
svn path=/trunk/; revision=20303
1 parent e2b8d4b commit 09b5023

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

reactos/lib/crt/stdio/vfwprint.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,11 @@ static int numberf(FILE * f, double __n, wchar_t exp_sign, int size, int precis
368368
tmp = buf;
369369
if ( type & ZEROTRUNC && ((type & SPECIAL) != SPECIAL) ) {
370370
j = 0;
371-
while ( j < i && ( *tmp == L'0' || *tmp == L'.' )) {
371+
while ( j < i && *tmp == L'0' ) {
372+
tmp++;
373+
i--;
374+
}
375+
if ( j < i && *tmp == L'.' ) {
372376
tmp++;
373377
i--;
374378
}

0 commit comments

Comments
 (0)