aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--Blocks.parse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Blocks.parse.c b/Blocks.parse.c
index d167b66..1ae9fa9 100644
--- a/Blocks.parse.c
+++ b/Blocks.parse.c
@@ -55,8 +55,8 @@ parse_line(char *text, size_t lineno)
name = text;
while (*text && *text != ';')
text++;
- for (i = 1u; isspace(text[-i]); i++)
- text[-i] = '\0';
+ for (i = 1u; isspace(*(text - i)); i++)
+ *(text - i) = '\0';
if (*text == ';') {
static int warned = 0;