diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-10-24 14:11:47 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-10-24 14:11:47 +0400 |
commit | a1af5ae6a69704eb147bc05f29374e894b9d0326 (patch) | |
tree | 16a2b2b8a9eea67f2c60f3e9e5f208d0e4e04925 /source/blender/editors/interface/interface_handlers.c | |
parent | 5571485bad17fce48bca160cef97f6a591d5c08f (diff) |
fix for error utf8 printing input.
Diffstat (limited to 'source/blender/editors/interface/interface_handlers.c')
-rw-r--r-- | source/blender/editors/interface/interface_handlers.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface_handlers.c b/source/blender/editors/interface/interface_handlers.c index 99972f2ff09..9d8e2f33f5c 100644 --- a/source/blender/editors/interface/interface_handlers.c +++ b/source/blender/editors/interface/interface_handlers.c @@ -1953,7 +1953,7 @@ static void ui_do_but_textedit(bContext *C, uiBlock *block, uiBut *but, uiHandle if(event->utf8_buf[0]) { /* keep this printf until utf8 is well tested */ - printf("%s: utf8 char '%s'\n", __func__, event->utf8_buf); + printf("%s: utf8 char '%.*s'\n", __func__, BLI_str_utf8_size(event->utf8_buf), event->utf8_buf); // strcpy(event->utf8_buf, "12345"); changed= ui_textedit_type_buf(but, data, event->utf8_buf, BLI_str_utf8_size(event->utf8_buf)); } |