mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 09:25:10 +00:00
- Fix a bug in printf.
svn path=/trunk/; revision=19194
This commit is contained in:
parent
91bc76c72e
commit
543d63dcc0
1 changed files with 4 additions and 1 deletions
|
@ -42,6 +42,9 @@ int printf(const char *format, ... )
|
||||||
switch (c = *(format++))
|
switch (c = *(format++))
|
||||||
{
|
{
|
||||||
case 'd': case 'u': case 'x':
|
case 'd': case 'u': case 'x':
|
||||||
|
if (c == 'x')
|
||||||
|
*_itoa(va_arg(ap, unsigned long), str, 16) = 0;
|
||||||
|
else
|
||||||
*_itoa(va_arg(ap, unsigned long), str, 10) = 0;
|
*_itoa(va_arg(ap, unsigned long), str, 10) = 0;
|
||||||
|
|
||||||
ptr = str;
|
ptr = str;
|
||||||
|
|
Loading…
Reference in a new issue