mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 17:05:46 +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,7 +42,10 @@ int printf(const char *format, ... )
|
|||
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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue