Small fix to string.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The maximum length of ultoa is 32 binary digits plus \0

 Ciao
        Jörg
--
Joerg Mayer                                          <jmayer@loplof.de>
I found out that "pro" means "instead of" (as in proconsul). Now I know
what proactive means.
Index: string.c
===================================================================
RCS file: /home/wine/wine/dlls/ntdll/string.c,v
retrieving revision 1.7
diff -u -p -r1.7 string.c
--- string.c	31 May 2002 23:25:49 -0000	1.7
+++ string.c	9 Oct 2002 18:28:13 -0000
@@ -69,7 +69,7 @@ LPSTR __cdecl _strlwr( LPSTR str )
  */
 LPSTR  __cdecl _ultoa( unsigned long x, LPSTR buf, INT radix )
 {
-    char buffer[32], *p;
+    char buffer[32+1], *p;
 
     p = buffer + sizeof(buffer);
     *--p = 0;

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux