Fixed bug in _ultoa.
This commit is contained in:
parent
20560f4535
commit
4014c74e14
|
@ -65,7 +65,7 @@ LPSTR __cdecl _ultoa( unsigned long x, LPSTR buf, INT radix )
|
|||
*--p = (rem <= 9) ? rem + '0' : rem + 'a' - 10;
|
||||
x /= radix;
|
||||
} while (x);
|
||||
strcpy( buf, p + 1 );
|
||||
strcpy( buf, p );
|
||||
return buf;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue