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
This commit is contained in:
Dag-Erling Smørgrav 2008-02-01 13:17:39 +00:00
parent 6be3c3717e
commit e42d5a34a3
1 changed files with 2 additions and 2 deletions

View File

@ -84,7 +84,7 @@ openpam_readline(FILE *f, int *lineno, size_t *lenp)
/* eof */ /* eof */
if (ch == EOF) { if (ch == EOF) {
/* remove trailing whitespace */ /* remove trailing whitespace */
while (len > 0 && isspace((int)line[len - 1])) while (len > 0 && isspace((unsigned char)line[len - 1]))
--len; --len;
line[len] = '\0'; line[len] = '\0';
if (len == 0) if (len == 0)
@ -97,7 +97,7 @@ openpam_readline(FILE *f, int *lineno, size_t *lenp)
++*lineno; ++*lineno;
/* remove trailing whitespace */ /* remove trailing whitespace */
while (len > 0 && isspace((int)line[len - 1])) while (len > 0 && isspace((unsigned char)line[len - 1]))
--len; --len;
line[len] = '\0'; line[len] = '\0';
/* skip blank lines */ /* skip blank lines */