mirror of https://github.com/fairyglade/ly.git
Try to fix bugs
This commit is contained in:
parent
843b67d42f
commit
f2ce8bedf2
|
|
@ -192,12 +192,13 @@ void input_desktop_add(
|
||||||
dgn_throw(DGN_ALLOC);
|
dgn_throw(DGN_ALLOC);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
me;
|
||||||
|
|
||||||
int name_len = strlen(name);
|
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)
|
if (strstr(name_simple, " ") != NULL)
|
||||||
{
|
{
|
||||||
name_simple = strtok(name_simple, " ");
|
name_simple = strtok(name_simple, " ");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue