summaryrefslogtreecommitdiff
path: root/options.c
diff options
context:
space:
mode:
authorPhilippe Brochard <hocwp@free.fr>2020-05-23 18:25:50 +0200
committerPhilippe Brochard <hocwp@free.fr>2020-05-23 18:25:50 +0200
commita164a7838e451d8dce4fc6d34abc5224201b02dc (patch)
tree33ce32b63c2d36c0926ed915c7b4a20a11a2d41b /options.c
parent13b2af4b613c09983814aff53bfa51ead57fc0cd (diff)
downloadxbindkeys-a164a7838e451d8dce4fc6d34abc5224201b02dc.tar.gz
Fix some compilation warnings
Diffstat (limited to 'options.c')
-rw-r--r--options.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/options.c b/options.c
index 18487a8..7257091 100644
--- a/options.c
+++ b/options.c
@@ -178,7 +178,7 @@ get_options (int argc, char **argv)
if (rc_file != NULL)
{
strncpy (rc_file, home, sizeof (rc_file) - 20);
- strncat (rc_file, "/.xbindkeysrc", sizeof (rc_file));
+ strncat (rc_file, "/.xbindkeysrc", 20);
}
}
@@ -190,7 +190,7 @@ get_options (int argc, char **argv)
if (rc_guile_file != NULL)
{
strncpy (rc_guile_file, home, sizeof (rc_guile_file) - 20);
- strncat (rc_guile_file, "/.xbindkeysrc.scm", sizeof (rc_guile_file));
+ strncat (rc_guile_file, "/.xbindkeysrc.scm", 20);
}
}
#endif