Commit d0590c06 authored by Alexandre Julliard's avatar Alexandre Julliard

Fixed buffer size in _ultoa (spotted by Joerg Mayer).

parent 996baf63
...@@ -69,7 +69,7 @@ LPSTR __cdecl _strlwr( LPSTR str ) ...@@ -69,7 +69,7 @@ LPSTR __cdecl _strlwr( LPSTR str )
*/ */
LPSTR __cdecl _ultoa( unsigned long x, LPSTR buf, INT radix ) LPSTR __cdecl _ultoa( unsigned long x, LPSTR buf, INT radix )
{ {
char buffer[32], *p; char *p, buffer[8*sizeof(unsigned long) + 1]; /* assume 8-bit chars */
p = buffer + sizeof(buffer); p = buffer + sizeof(buffer);
*--p = 0; *--p = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment