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

This commit is contained in:
Alexandre Julliard 2002-10-09 20:27:33 +00:00
parent 996baf6379
commit d0590c0658
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ LPSTR __cdecl _strlwr( LPSTR str )
*/
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 = 0;