mirror of
https://github.com/i3/i3.git
synced 2026-02-04 13:05:35 +00:00
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:
committed by
Michael Stapelberg
parent
06dfce68d9
commit
49cbf9a6d6
@ -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++;
|
||||
|
||||
Reference in New Issue
Block a user