From f4870d5432b9d90865fee177465ff9cf22fab51c Mon Sep 17 00:00:00 2001 From: Brian Ashworth Date: Tue, 5 Jun 2018 10:07:42 -0400 Subject: [PATCH] Fix logic issue in do_var_replacement --- sway/config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sway/config.c b/sway/config.c index f382eefae..0e41df046 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