From 44fa4f3567270b3a8e624aee764b423e6aefb257 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 17 Oct 2026 13:18:48 +0200 Subject: m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- Blocks.parse.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Blocks.parse.c') 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; -- cgit v1.3.1