Fixed crash bug when loading label including whitespace.

This commit is contained in:
Shin-ichi TOYAMA 2014-08-22 14:43:08 +00:00
parent 06b94d7f6d
commit 8d1d780b73

View file

@ -20604,7 +20604,7 @@ static void load_info_about_label_surface(FILE * lfi)
wchar_t *wtmpstr;
tmpstr = malloc(1024);
wtmpstr = malloc(1024);
fscanf(lfi, "%s\n", tmpstr);
fgets(tmpstr, 1024, lfi);
mtw(wtmpstr, tmpstr);
for(l = 0; l < new_node->save_texttool_len; l++)
{