Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2010-11-14 10:28:53 +0300
committerCampbell Barton <ideasman42@gmail.com>2010-11-14 10:28:53 +0300
commit6a49aca15327d6bdc60458529dd4dd5f2e33ba79 (patch)
treed28933d8d1504d440c626e6ee98c1be61385b1fa /source/blender/editors/space_text
parente4e79f4aa325d0c67b3792247d370dea1017eb2b (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.c3
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);