diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-02-28 04:08:47 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-02-28 04:08:47 +0400 |
commit | e4c887377b5c38e34b0d72e5afa23f1a4424671e (patch) | |
tree | 16b6b896bab7013d3c346a5c3fc4aa56345926af /source/blender | |
parent | dff8c01c3eb712ccc96d59037f3e4a5b63f63c21 (diff) |
patch [#34465] Fix text editor bug: Crash when overwriting ascii character with multibyte character
from Shinsuke Irie (irie)
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/blenkernel/intern/text.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/text.c b/source/blender/blenkernel/intern/text.c index 74c0a76f82d..184984352ba 100644 --- a/source/blender/blenkernel/intern/text.c +++ b/source/blender/blenkernel/intern/text.c @@ -2560,6 +2560,7 @@ int txt_replace_char(Text *text, unsigned int add) memcpy(text->curl->line + text->curc, ch, add_size); text->curc += add_size; + text->curl->len += add_size - del_size; txt_pop_sel(text); txt_make_dirty(text); |