diff options
author | emersion <[email protected]> | 2018-04-15 07:42:38 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2018-04-15 07:42:38 +0200 |
commit | 3ea2a9a85e7db6e9858ccf68a67b312cd6db36c5 (patch) | |
tree | 9d81001776f4e095de76a63d540ab1ab0ca45caf /sway/commands.c | |
parent | dcecfe6a996c89988f7639493395ebe224f8d9a8 (diff) | |
parent | 0feb25e0283657087dd73a06c1b5ae891e0896b3 (diff) |
Merge pull request #1811 from martinetd/gcc_warnings
Fix gcc warnings
Diffstat (limited to 'sway/commands.c')
-rw-r--r-- | sway/commands.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/commands.c b/sway/commands.c index 54d84450..99f42524 100644 --- a/sway/commands.c +++ b/sway/commands.c @@ -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'; |