mirror of
https://github.com/fairyglade/ly.git
synced 2025-12-21 11:44:55 +00:00
@@ -196,9 +196,7 @@ void input_desktop_add(
|
|||||||
target->list[target->cur] = name;
|
target->list[target->cur] = name;
|
||||||
|
|
||||||
int name_len = strlen(name);
|
int name_len = strlen(name);
|
||||||
char* name_simple = malloc(name_len);
|
char* name_simple = strdup(name_len);
|
||||||
|
|
||||||
memcpy(name_simple, name, name_len);
|
|
||||||
|
|
||||||
if (strstr(name_simple, " ") != NULL)
|
if (strstr(name_simple, " ") != NULL)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user