fix bad memory range of text3d charinfo being used.

This commit is contained in:
Campbell Barton 2010-07-23 05:31:11 +00:00
parent bd30c4da8a
commit 37bb55b7bc

@ -1423,7 +1423,7 @@ static void write_curves(WriteData *wd, ListBase *idbase)
if(cu->vfont) { if(cu->vfont) {
writedata(wd, DATA, amount_of_chars(cu->str)+1, cu->str); writedata(wd, DATA, amount_of_chars(cu->str)+1, cu->str);
writestruct(wd, DATA, "CharInfo", cu->len, cu->strinfo); writestruct(wd, DATA, "CharInfo", cu->len+1, cu->strinfo);
writestruct(wd, DATA, "TextBox", cu->totbox, cu->tb); writestruct(wd, DATA, "TextBox", cu->totbox, cu->tb);
} }
else { else {