diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-11-14 10:28:53 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-11-14 10:28:53 +0300 |
commit | 6a49aca15327d6bdc60458529dd4dd5f2e33ba79 (patch) | |
tree | d28933d8d1504d440c626e6ee98c1be61385b1fa /source/blender/editors/space_text | |
parent | e4e79f4aa325d0c67b3792247d370dea1017eb2b (diff) |
fix for own error in recent commit. add a back NULL terminator to the string in text_font_draw_character.
Diffstat (limited to 'source/blender/editors/space_text')
-rw-r--r-- | source/blender/editors/space_text/text_draw.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/space_text/text_draw.c b/source/blender/editors/space_text/text_draw.c index ee00ffa9f87..2b27186041f 100644 --- a/source/blender/editors/space_text/text_draw.c +++ b/source/blender/editors/space_text/text_draw.c @@ -81,8 +81,9 @@ static int text_font_draw(SpaceText *UNUSED(st), int x, int y, char *str) static int text_font_draw_character(SpaceText *st, int x, int y, char c) { - char str[1]; + char str[2]; str[0]= c; + str[1]= '\0'; BLF_position(mono, x, y, 0); BLF_draw(mono, str, 1); |