Fix crash in parse_file() when parsing nested variables (#5003)
Count extra_bytes correctly If there is a variable with the same name as the rest of another variable after removing $, then it will be counted twice. Therefore, we need to completely replace it with spaces (variable names cannot contain spaces) in order to correctly calculate the length of a new string. fixes https://github.com/i3/i3/pull/5002 Co-authored-by: Ivan Zharov <zhiv.email@gmail.com> Co-authored-by: Michael Stapelberg <stapelberg@users.noreply.github.com>
This commit is contained in:
1
release-notes/bugfixes/8-fix-nested-variables-crash
Normal file
1
release-notes/bugfixes/8-fix-nested-variables-crash
Normal file
@@ -0,0 +1 @@
|
||||
Fix crash if config contains nested variables.
|
Reference in New Issue
Block a user