diff options
author | Ton Roosendaal <ton@blender.org> | 2009-06-15 13:54:37 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2009-06-15 13:54:37 +0400 |
commit | e6aa552e25cd2c8ff6582b3f8fb2a91b8aad2711 (patch) | |
tree | 2b07fa09069c46ab877532e530f973172190edf8 /source/blender/editors/curve | |
parent | c12d5d61a89e549dd4a07abf65d54d2768c1df76 (diff) |
2.5
Text Object: editmode suffered wrong allocation and reading from wrong
memory, causing crashes when typing more than a few chars.
Diffstat (limited to 'source/blender/editors/curve')
-rw-r--r-- | source/blender/editors/curve/editfont.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/curve/editfont.c b/source/blender/editors/curve/editfont.c index 1b2c8ea6b11..0fb6fb8cb90 100644 --- a/source/blender/editors/curve/editfont.c +++ b/source/blender/editors/curve/editfont.c @@ -1407,7 +1407,7 @@ void make_editText(Object *obedit) ef->copybuf= MEM_callocN((MAXTEXT+4)*sizeof(wchar_t), "texteditcopybuf"); ef->copybufinfo= MEM_callocN((MAXTEXT+4)*sizeof(CharInfo), "texteditcopybufinfo"); ef->oldstr= MEM_callocN((MAXTEXT+4)*sizeof(wchar_t), "oldstrbuf"); - ef->oldstrinfo= MEM_callocN((MAXTEXT+4)*sizeof(wchar_t), "oldstrbuf"); + ef->oldstrinfo= MEM_callocN((MAXTEXT+4)*sizeof(CharInfo), "oldstrbuf"); } // Convert the original text to wchar_t |