Oops.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@289 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
78eee44879
commit
b8cf4fefa6
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue