Changeset 304 in openpam for trunk


Ignore:
Timestamp:
Feb 3, 2005, 8:22:02 AM (14 years ago)
Author:
Dag-Erling Smørgrav
Message:

Better to use unsigned char when isspace() is involved.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/openpam_readline.c

    r241 r304  
    3232 * SUCH DAMAGE.
    3333 *
    34  * $P4: //depot/projects/openpam/lib/openpam_readline.c#2 $
     34 * $P4: //depot/projects/openpam/lib/openpam_readline.c#3 $
    3535 */
    3636
     
    5353openpam_readline(FILE *f, int *lineno, size_t *lenp)
    5454{
    55         char *line;
     55        unsigned char *line;
    5656        size_t len, size;
    5757        int ch;
     
    6464#define line_putch(ch) do { \
    6565        if (len >= size - 1) { \
    66                 char *tmp = realloc(line, size *= 2); \
     66                unsigned char *tmp = realloc(line, size *= 2); \
    6767                if (tmp == NULL) \
    6868                        goto fail; \
Note: See TracChangeset for help on using the changeset viewer.