[ros-diffs] [greatlrd] 20326: Adding same bug fix as 20303 to
vfprintf.c it did have same problem. thx for GvG bugfix.
greatlrd at svn.reactos.com
greatlrd at svn.reactos.com
Sun Dec 25 03:55:22 CET 2005
Adding same bug fix as 20303 to vfprintf.c it did have same problem. thx
for GvG bugfix.
Modified: trunk/reactos/lib/crt/stdio/vfprintf.c
_____
Modified: trunk/reactos/lib/crt/stdio/vfprintf.c
--- trunk/reactos/lib/crt/stdio/vfprintf.c 2005-12-25 02:05:50 UTC
(rev 20325)
+++ trunk/reactos/lib/crt/stdio/vfprintf.c 2005-12-25 02:55:18 UTC
(rev 20326)
@@ -367,13 +367,20 @@
}
tmp = buf;
+
if ( type & ZEROTRUNC && ((type & SPECIAL) != SPECIAL) )
{
j = 0;
- while ( j < i && ( *tmp == '0' || *tmp == '.' ))
{
+ while ( j < i && *tmp == L'0' ) {
tmp++;
i--;
}
+ if ( j < i && *tmp == L'.' ) {
+ tmp++;
+ i--;
+ }
}
+
+
// else
// while (i < precision--)
// putc('0', f);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20051225/c6ac7397/attachment.html
More information about the Ros-diffs
mailing list