Fix ctype(3) function arguments.

Valid are unsigned char and EOF; add cast to make sure we're in the
allowed range.
This commit is contained in:
Thomas Klausner
2025-12-29 10:32:19 +01:00
committed by Michael Stapelberg
parent 06dfce68d9
commit 49cbf9a6d6
3 changed files with 3 additions and 3 deletions

View File

@ -732,7 +732,7 @@ static void finish(void) {
/* Skip leading whitespace */
char *walk = line;
while (isspace(*walk) && walk < (line + len)) {
while (isspace((unsigned char)*walk) && walk < (line + len)) {
/* Pre-output the skipped whitespaces to keep proper indentation */
fputc(*walk, ks_config);
walk++;