mirror of https://github.com/fairyglade/ly.git
Fix error
This commit is contained in:
parent
f2ce8bedf2
commit
0a6c5583f8
|
|
@ -192,10 +192,11 @@ void input_desktop_add(
|
|||
dgn_throw(DGN_ALLOC);
|
||||
return;
|
||||
}
|
||||
me;
|
||||
|
||||
target->list[target->cur] = name;
|
||||
|
||||
int name_len = strlen(name);
|
||||
char name_simple[name_len];
|
||||
char* name_simple = malloc(name_len);
|
||||
|
||||
memcpy(name_simple, name, name_len);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue