projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4e2b520
)
Adding same bug fix as 20303 to vfprintf.c it did have same problem. thx for GvG...
author
Magnus Olsen
<magnus@greatlord.com>
Sun, 25 Dec 2005 02:55:18 +0000
(
02:55
+0000)
committer
Magnus Olsen
<magnus@greatlord.com>
Sun, 25 Dec 2005 02:55:18 +0000
(
02:55
+0000)
svn path=/trunk/; revision=20326
reactos/lib/crt/stdio/vfprintf.c
patch
|
blob
|
history
diff --git
a/reactos/lib/crt/stdio/vfprintf.c
b/reactos/lib/crt/stdio/vfprintf.c
index
ead15b8
..
e470a18
100644
(file)
--- a/
reactos/lib/crt/stdio/vfprintf.c
+++ b/
reactos/lib/crt/stdio/vfprintf.c
@@
-367,13
+367,20
@@
static int numberf(FILE * f, double __n, char exp_sign, int size, int precision
}
tmp = buf;
}
tmp = buf;
+
if ( type & ZEROTRUNC && ((type & SPECIAL) != SPECIAL) ) {
j = 0;
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--;
}
}
tmp++;
i--;
}
}
+
+
// else
// while (i < precision--)
// putc('0', f);
// else
// while (i < precision--)
// putc('0', f);