fix for error in string copy
authorCampbell Barton <ideasman42@gmail.com>
Mon, 15 Jul 2013 05:09:06 +0000 (05:09 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Mon, 15 Jul 2013 05:09:06 +0000 (05:09 +0000)
commit2b6f35d686a35a347aec93cae2f018b1f7312834
tree1e76ab3688a3470aa1103804135387868ec80306
parent02f5b0fc08e979dab65a7bc1ee0383098ac99b2e
fix for error in string copy
- BLI_strncpy_wchar_from_utf8 wasn't NULL terminating the destination string, caused uninitialized memory use in BPY_python_start().
- BLI_strncpy_wchar_as_utf8 could write one byte past the buffer bounds.
source/blender/blenkernel/intern/font.c
source/blender/blenlib/intern/string_utf8.c
source/blender/editors/curve/editfont.c