mirror of
https://codeberg.org/fairyglade/ly.git
synced 2026-08-22 21:44:20 +02:00
parent
2ffb86213b
commit
19153760d3
1 changed files with 1 additions and 3 deletions
|
|
@ -196,9 +196,7 @@ void input_desktop_add(
|
|||
target->list[target->cur] = name;
|
||||
|
||||
int name_len = strlen(name);
|
||||
char* name_simple = malloc(name_len);
|
||||
|
||||
memcpy(name_simple, name, name_len);
|
||||
char* name_simple = strdup(name_len);
|
||||
|
||||
if (strstr(name_simple, " ") != NULL)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue