diff options
author | Brian Ashworth <bosrsf04@gmail.com> | 2018-06-05 10:07:42 -0400 |
---|---|---|
committer | Brian Ashworth <bosrsf04@gmail.com> | 2018-06-05 10:08:00 -0400 |
commit | f4870d5432b9d90865fee177465ff9cf22fab51c (patch) | |
tree | 38826734af585f20a4a7384122022d7046a9b99f | |
parent | Support runtime var expansion and set at runtime (diff) | |
download | sway-f4870d5432b9d90865fee177465ff9cf22fab51c.tar.gz sway-f4870d5432b9d90865fee177465ff9cf22fab51c.tar.zst sway-f4870d5432b9d90865fee177465ff9cf22fab51c.zip |
Fix logic issue in do_var_replacement
-rw-r--r-- | sway/config.c | 2 |
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) { | |||
662 | size_t length = strlen(find + 1); | 662 | size_t length = strlen(find + 1); |
663 | strncpy(find, find + 1, length); | 663 | strncpy(find, find + 1, length); |
664 | find[length] = '\0'; | 664 | find[length] = '\0'; |
665 | find += 2; | 665 | ++find; |
666 | continue; | 666 | continue; |
667 | } | 667 | } |
668 | // Find matching variable | 668 | // Find matching variable |