Fix error

This commit is contained in:
AnErrupTion 2022-04-20 22:32:42 +02:00
parent f2ce8bedf2
commit 0a6c5583f8
1 changed files with 3 additions and 2 deletions

View File

@ -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);