aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Ashworth <bosrsf04@gmail.com>2018-06-05 10:07:42 -0400
committerBrian Ashworth <bosrsf04@gmail.com>2018-06-05 10:08:00 -0400
commitf4870d5432b9d90865fee177465ff9cf22fab51c (patch)
tree38826734af585f20a4a7384122022d7046a9b99f
parent067fe9d0472ca24328a962e8704d4e843f2a8af1 (diff)
Fix logic issue in do_var_replacement
-rw-r--r--sway/config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/config.c b/sway/config.c
index f382eefa..0e41df04 100644
--- a/sway/config.c
+++ b/sway/config.c
@@ -662,7 +662,7 @@ char *do_var_replacement(char *str) {
size_t length = strlen(find + 1);
strncpy(find, find + 1, length);
find[length] = '\0';
- find += 2;
+ ++find;
continue;
}
// Find matching variable