Try to fix bugs

This commit is contained in:
AnErrupTion 2022-04-20 22:25:09 +02:00
parent 843b67d42f
commit f2ce8bedf2
1 changed files with 3 additions and 2 deletions

View File

@ -192,12 +192,13 @@ void input_desktop_add(
dgn_throw(DGN_ALLOC);
return;
}
me;
int name_len = strlen(name);
char name_simple[name_len];
target->list[target->cur] = name;
memcpy(name_simple, name, name_len);
char* name_simple = name;
if (strstr(name_simple, " ") != NULL)
{
name_simple = strtok(name_simple, " ");