aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/yawa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/yawa.c b/src/yawa.c
index 9427d78..2cac14b 100644
--- a/src/yawa.c
+++ b/src/yawa.c
@@ -45,7 +45,7 @@ parse_opt (int key, char *arg, struct argp_state *state)
case 'a':
arguments->add = true;
strncpy(arguments->add_color[num_add_colors], arg,
- sizeof(arguments->add_color[0]));
+ sizeof(arguments->add_color[0]) - 1);
num_add_colors += 1;
break;
case 'g':