- 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;