[ros-diffs] [gvg] 20303: Fix nul stripping and get GreatLord of my back ; -)

gvg at svn.reactos.com gvg at svn.reactos.com
Thu Dec 22 21:41:51 CET 2005


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--)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20051222/725068d4/attachment.html


More information about the Ros-diffs mailing list