Changeset 413 in openpam for trunk


Ignore:
Timestamp:
Feb 1, 2008, 1:17:39 PM (11 years ago)
Author:
Dag-Erling Smørgrav
Message:

I must have been drunk when I committed r380, because the cast for isspace()
is wrong, and I knew it...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/openpam_readline.c

    r408 r413  
    8585                if (ch == EOF) {
    8686                        /* remove trailing whitespace */
    87                         while (len > 0 && isspace((int)line[len - 1]))
     87                        while (len > 0 && isspace((unsigned char)line[len - 1]))
    8888                                --len;
    8989                        line[len] = '\0';
     
    9898
    9999                        /* remove trailing whitespace */
    100                         while (len > 0 && isspace((int)line[len - 1]))
     100                        while (len > 0 && isspace((unsigned char)line[len - 1]))
    101101                                --len;
    102102                        line[len] = '\0';
Note: See TracChangeset for help on using the changeset viewer.