aboutsummaryrefslogtreecommitdiff
path: root/sway/config.c
diff options
context:
space:
mode:
authorBrian Ashworth <bosrsf04@gmail.com>2018-06-07 20:37:08 -0400
committerBrian Ashworth <bosrsf04@gmail.com>2018-06-07 20:37:08 -0400
commit212e4ef39518c4bb29eeef46f705770d3d28a6fc (patch)
tree19c1eb89136d7c96aa7a61703e362fba2fd1fa1d /sway/config.c
parent07bee8cffe60b4a23ddd637461d8290f25f99be2 (diff)
Remove strip quoting and fix strncpy-overlap
Diffstat (limited to 'sway/config.c')
-rw-r--r--sway/config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/config.c b/sway/config.c
index 0e41df04..949c5cd3 100644
--- a/sway/config.c
+++ b/sway/config.c
@@ -660,7 +660,7 @@ char *do_var_replacement(char *str) {
// Unescape double $ and move on
if (find[1] == '$') {
size_t length = strlen(find + 1);
- strncpy(find, find + 1, length);
+ memmove(find, find + 1, length);
find[length] = '\0';
++find;
continue;