fix for own error in recent commit. add a back NULL terminator to the string in text_...
authorCampbell Barton <ideasman42@gmail.com>
Sun, 14 Nov 2010 07:28:53 +0000 (07:28 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sun, 14 Nov 2010 07:28:53 +0000 (07:28 +0000)
source/blender/editors/space_text/text_draw.c

index ee00ffa9f87002baca38c8b68c01e88c573467b9..2b27186041fd889a31b7a21b6ccaf65d50f73d61 100644 (file)
@@ -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);