Fix nul stripping and get GreatLord of my back ;-)
Modified: trunk/reactos/lib/crt/stdio/vfwprint.c
_____
Modified: trunk/reactos/lib/crt/stdio/vfwprint.c
--- trunk/reactos/lib/crt/stdio/vfwprint.c 2005-12-22 18:32:14 UTC
(rev 20302)
+++ trunk/reactos/lib/crt/stdio/vfwprint.c 2005-12-22 20:41:46 UTC
(rev 20303)
@@ -368,10 +368,14 @@
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--;
+ }
}
// else
// while (i < precision--)