From e42d5a34a33ed79a579a256986a9932dc677b1a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dag-Erling=20Sm=C3=B8rgrav?= Date: Fri, 1 Feb 2008 13:17:39 +0000 Subject: [PATCH] I must have been drunk when I committed r380, because the cast for isspace() is wrong, and I knew it... git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@413 185d5e19-27fe-0310-9dcf-9bff6b9f3609 --- lib/openpam_readline.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/openpam_readline.c b/lib/openpam_readline.c index 351966f..9a6fdf6 100644 --- a/lib/openpam_readline.c +++ b/lib/openpam_readline.c @@ -84,7 +84,7 @@ openpam_readline(FILE *f, int *lineno, size_t *lenp) /* eof */ if (ch == EOF) { /* remove trailing whitespace */ - while (len > 0 && isspace((int)line[len - 1])) + while (len > 0 && isspace((unsigned char)line[len - 1])) --len; line[len] = '\0'; if (len == 0) @@ -97,7 +97,7 @@ openpam_readline(FILE *f, int *lineno, size_t *lenp) ++*lineno; /* remove trailing whitespace */ - while (len > 0 && isspace((int)line[len - 1])) + while (len > 0 && isspace((unsigned char)line[len - 1])) --len; line[len] = '\0'; /* skip blank lines */