dlls/msvcrt/files.c: %% in printf format string
wine.larry.engholm at xoxy.net
wine.larry.engholm at xoxy.net
Mon May 9 15:56:53 CDT 2005
printf("%%x");
prints, e.g., %4000 rather than %x.
"%%" followed by another character is interepted as "%%%" followed by
the other character.
-Larry
Changelog:
Interpret %% correctly in printf format string.
Index: wcs.c
===================================================================
RCS file: /home/wine/wine/dlls/msvcrt/wcs.c,v
retrieving revision 1.23
diff -u -p -r1.23 wcs.c
--- wcs.c 14 Apr 2005 11:32:53 -0000 1.23
+++ wcs.c 9 May 2005 20:12:18 -0000
@@ -430,7 +430,7 @@ static int pf_vsnprintf( pf_output *out,
/* output a single % character */
if( *p == '%' )
{
- r = pf_output_stringW(out, p, 1);
+ r = pf_output_stringW(out, p++, 1);
if( r<0 )
return r;
continue;
More information about the wine-patches
mailing list