summaryrefslogtreecommitdiff
path: root/sway/commands.c
diff options
context:
space:
mode:
authorDominique Martinet <[email protected]>2018-04-13 22:35:23 +0900
committerDominique Martinet <[email protected]>2018-04-13 22:47:27 +0900
commit25af959fe96441123f8ab492427a9390af384918 (patch)
treeeac72167f123b908e1a3fc2120493d2b70fe3984 /sway/commands.c
parent54ae394754533295627eacb8b26a579bc051dda9 (diff)
Fix gcc string truncation warnings
Diffstat (limited to 'sway/commands.c')
-rw-r--r--sway/commands.c2
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';