bug-gnustep
[Top][All Lists]
Advanced

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

-[GSUnicodeString intValue] fix


From: Larry Campbell
Subject: -[GSUnicodeString intValue] fix
Date: Fri, 20 Jun 2003 13:45:37 -0400

-[GSUnicodeString intValue] fails if the input string is ten digits long (which is a legitimate input length). I found the problem in gnustep-base 1.4.0 and it still exists in 1.6.0.

Here's the fix:

--- GSString.m.broken   Fri Jun 20 13:39:35 2003
+++ GSString.m  Fri Jun 20 13:40:17 2003
@@ -1107,7 +1107,7 @@
     }
   else
     {
-      unsigned int     l = self->_count < 10 ? self->_count : 9;
+      unsigned int     l = self->_count < 11 ? self->_count : 10;
       unsigned char    buf[l+1];
       unsigned char    *b = buf;





reply via email to

[Prev in Thread] Current Thread [Next in Thread]