Fix/workaround for russian ui crash on exit

Crash was caused by data segment corruption near "string" in view3d_modeselect_pup().
Enlarged size of this static buffer, so it's now enough to store translated modeselect string.

It's not actually fixes because in some other language this modeline might be much longer
and it'll lead to corruptions again.
This commit is contained in:
Sergey Sharybin
2011-12-22 16:00:34 +00:00
parent 4045b46676
commit e06a0ba2bb

View File

@@ -276,7 +276,7 @@ static int modeselect_addmode(char *str, const char *title, int id, int icon)
static char *view3d_modeselect_pup(Scene *scene)
{
Object *ob= OBACT;
static char string[256];
static char string[512];
const char *title= IFACE_("Mode: %t");
char *str = string;