mirror of
https://github.com/swaywm/sway.git
synced 2024-11-27 02:11:28 +00:00
Fix logic issue in do_var_replacement
This commit is contained in:
parent
067fe9d047
commit
f4870d5432
|
@ -662,7 +662,7 @@ char *do_var_replacement(char *str) {
|
||||||
size_t length = strlen(find + 1);
|
size_t length = strlen(find + 1);
|
||||||
strncpy(find, find + 1, length);
|
strncpy(find, find + 1, length);
|
||||||
find[length] = '\0';
|
find[length] = '\0';
|
||||||
find += 2;
|
++find;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
// Find matching variable
|
// Find matching variable
|
||||||
|
|
Loading…
Reference in a new issue