diff --git a/usr.bin/fmt/fmt.c b/usr.bin/fmt/fmt.c index a8662fdcf3e3..8a763b5a1d1c 100644 --- a/usr.bin/fmt/fmt.c +++ b/usr.bin/fmt/fmt.c @@ -580,7 +580,7 @@ center_stream(FILE *stream, const char *name) { size_t length; while ((line=get_line(stream, &length)) != 0) { size_t l=length; - while (l>0 && isspace(*line)) { ++line; --l; } + while (l>0 && isspace((unsigned char)*line)) { ++line; --l; } length=l; while (l