From: toshinagata1964 Date: Sat, 15 Feb 2014 16:23:14 +0000 (+0000) Subject: Ruby: IntGroup#inspect caused crash when the result exceeds 64 bytes. Fixed. X-Git-Tag: v1.0.2~206 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=f3952af4059e6d81b3b33baa04034252674b91df;p=molby%2FMolby.git Ruby: IntGroup#inspect caused crash when the result exceeds 64 bytes. Fixed. git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/molby/trunk@433 a2be9bc6-48de-4e38-9406-05402d4bc13c --- diff --git a/MolLib/IntGroup.c b/MolLib/IntGroup.c index e41194a..697ec27 100755 --- a/MolLib/IntGroup.c +++ b/MolLib/IntGroup.c @@ -931,6 +931,7 @@ IntGroupInspect(const IntGroup *pset) if (s == NULL) return NULL; /* Out of memory */ } + len += len2; strcat(s, buf); } return s; /* The caller needs to free the return value */