OSDN Git Service

Ruby: IntGroup#inspect caused crash when the result exceeds 64 bytes. Fixed.
authortoshinagata1964 <toshinagata1964@a2be9bc6-48de-4e38-9406-05402d4bc13c>
Sat, 15 Feb 2014 16:23:14 +0000 (16:23 +0000)
committertoshinagata1964 <toshinagata1964@a2be9bc6-48de-4e38-9406-05402d4bc13c>
Sat, 15 Feb 2014 16:23:14 +0000 (16:23 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/molby/trunk@433 a2be9bc6-48de-4e38-9406-05402d4bc13c

MolLib/IntGroup.c

index e41194a..697ec27 100755 (executable)
@@ -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  */