aboutsummaryrefslogtreecommitdiff
path: root/sway/config.c
diff options
context:
space:
mode:
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;