[ros-diffs] [ion] 19194: - Fix a bug in printf.

ion at svn.reactos.com ion at svn.reactos.com
Sun Nov 13 07:12:19 CET 2005


- Fix a bug in printf.
Modified: trunk/reactos/boot/freeldr/freeldr/ui/tui.c
  _____  

Modified: trunk/reactos/boot/freeldr/freeldr/ui/tui.c
--- trunk/reactos/boot/freeldr/freeldr/ui/tui.c	2005-11-13 06:09:37 UTC
(rev 19193)
+++ trunk/reactos/boot/freeldr/freeldr/ui/tui.c	2005-11-13 06:11:38 UTC
(rev 19194)
@@ -42,7 +42,10 @@

 			switch (c = *(format++))
 			{
 			case 'd': case 'u': case 'x':
-                *_itoa(va_arg(ap, unsigned long), str, 10) = 0;
+                if (c == 'x')
+                    *_itoa(va_arg(ap, unsigned long), str, 16) = 0;
+                else
+                    *_itoa(va_arg(ap, unsigned long), str, 10) = 0;
 
 				ptr = str;
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20051113/efce7a8c/attachment.html


More information about the Ros-diffs mailing list