diff options
Diffstat (limited to '')
| -rw-r--r-- | Blocks.parse.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Blocks.parse.c b/Blocks.parse.c index 1ae9fa9..c9b3013 100644 --- a/Blocks.parse.c +++ b/Blocks.parse.c @@ -24,6 +24,7 @@ parse_line(char *text, size_t lineno) { unsigned long int low, high; char *name; + intptr_t j; size_t i; errno = 0; @@ -55,8 +56,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 (j = 1; isspace(text[-j]); j++) + text[-j] = '\0'; if (*text == ';') { static int warned = 0; |
