diff --git a/Source/SWIG1.1/sstring.cxx b/Source/SWIG1.1/sstring.cxx index c8a492cf5..b53ae49e6 100644 --- a/Source/SWIG1.1/sstring.cxx +++ b/Source/SWIG1.1/sstring.cxx @@ -142,7 +142,7 @@ String::String(const char *s) { l = (int) strlen(s); if ((l+1) > max) max = l+1; } - str = new char[maxsize]; + str = new char[max]; if (s) { strcpy(str,s); len = l;