Changeset 413

Show
Ignore:
Timestamp:
02/01/08 13:17:39 (2 years ago)
Author:
des
Message:

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

Files:
1 modified

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';