aboutsummaryrefslogtreecommitdiffstats
path: root/sway/commands.c
diff options
context:
space:
mode:
authorLibravatar Dominique Martinet <asmadeus@codewreck.org>2018-04-13 22:35:23 +0900
committerLibravatar Dominique Martinet <asmadeus@codewreck.org>2018-04-13 22:47:27 +0900
commit25af959fe96441123f8ab492427a9390af384918 (patch)
treeeac72167f123b908e1a3fc2120493d2b70fe3984 /sway/commands.c
parentMerge pull request #1810 from martinetd/wl_scanner (diff)
downloadsway-25af959fe96441123f8ab492427a9390af384918.tar.gz
sway-25af959fe96441123f8ab492427a9390af384918.tar.zst
sway-25af959fe96441123f8ab492427a9390af384918.zip
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,
601 "Invalid color definition %s", color); 601 "Invalid color definition %s", color);
602 } 602 }
603 } 603 }
604 strncpy(buffer, color, len); 604 strcpy(buffer, color);
605 // add default alpha channel if color was defined without it 605 // add default alpha channel if color was defined without it
606 if (len == 7) { 606 if (len == 7) {
607 buffer[7] = 'f'; 607 buffer[7] = 'f';