forked from bartvdbraak/blender
Commented out the memset(...) in chtoutf8(), as it just assumed the buffer
was at least 16 bytes long, but wasn't always, and it gets cleared manually by all calling places anyway. Should fix crashes.
This commit is contained in:
parent
98bd4615b5
commit
1c337c49f1
@ -86,7 +86,7 @@ void
|
||||
chtoutf8(unsigned long c, char *o)
|
||||
{
|
||||
// Variables and initialization
|
||||
memset(o, 0, 16);
|
||||
/* memset(o, 0, 16); */
|
||||
|
||||
// Create the utf-8 string
|
||||
if (c < 0x80)
|
||||
|
Loading…
Reference in New Issue
Block a user