From b1f0a87a7041c0cbb0bb19f01b566ba1d188949e Mon Sep 17 00:00:00 2001 From: Dave Beazley Date: Mon, 28 Feb 2000 18:23:39 +0000 Subject: [PATCH] Oops. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@289 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Source/SWIG1.1/sstring.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;