projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e2b8d4b
)
Fix nul stripping and get GreatLord of my back ;-)
author
Gé van Geldorp
<ge@gse.nl>
Thu, 22 Dec 2005 20:41:46 +0000
(20:41 +0000)
committer
Gé van Geldorp
<ge@gse.nl>
Thu, 22 Dec 2005 20:41:46 +0000
(20:41 +0000)
svn path=/trunk/; revision=20303
reactos/lib/crt/stdio/vfwprint.c
patch
|
blob
|
history
diff --git
a/reactos/lib/crt/stdio/vfwprint.c
b/reactos/lib/crt/stdio/vfwprint.c
index
a6ef0bb
..
7e0847b
100644
(file)
--- 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--;
}