Fixed an off-by-one error in StringBank_AddString.

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2872 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
mcmartin
2007-12-16 00:44:52 +00:00
parent acbff37448
commit 95365e688f
+1 -1
View File
@@ -75,7 +75,7 @@ StringBank_AddString (stringbank *bank, const char *str)
/* No room in any currently existing chunk */ /* No room in any currently existing chunk */
x = add_chunk (bank); x = add_chunk (bank);
strcpy (x->data, str); strcpy (x->data, str);
x->len += len + 1; x->len += len;
return x->data; return x->data;
} }