mirror of
https://github.com/swaywm/sway.git
synced 2025-11-13 13:29:49 -05:00
Fix gcc string truncation warnings
This commit is contained in:
parent
54ae394754
commit
25af959fe9
4 changed files with 4 additions and 4 deletions
|
|
@ -601,7 +601,7 @@ struct cmd_results *add_color(const char *name,
|
|||
"Invalid color definition %s", color);
|
||||
}
|
||||
}
|
||||
strncpy(buffer, color, len);
|
||||
strcpy(buffer, color);
|
||||
// add default alpha channel if color was defined without it
|
||||
if (len == 7) {
|
||||
buffer[7] = 'f';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue