git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@289 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Dave Beazley 2000-02-28 18:23:39 +00:00
commit b8cf4fefa6

View file

@ -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;