mirror of
https://github.com/labwc/labwc.git
synced 2026-04-12 08:21:13 -04:00
Fix strncpy warning
This should make gcc with -march=native happy.
This commit is contained in:
parent
5cc6a5b3e1
commit
cb1344f702
1 changed files with 2 additions and 2 deletions
|
|
@ -769,8 +769,8 @@ output_add_virtual(struct server *server, const char *output_name)
|
|||
return;
|
||||
}
|
||||
}
|
||||
strncpy(server->headless.pending_output_name, output_name,
|
||||
sizeof(server->headless.pending_output_name));
|
||||
snprintf(server->headless.pending_output_name,
|
||||
sizeof(server->headless.pending_output_name), "%s", output_name);
|
||||
} else {
|
||||
server->headless.pending_output_name[0] = '\0';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue