=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ftp/util.c,v retrieving revision 1.72 retrieving revision 1.73 diff -c -r1.72 -r1.73 *** src/usr.bin/ftp/util.c 2015/03/17 19:31:30 1.72 --- src/usr.bin/ftp/util.c 2015/10/18 03:04:11 1.73 *************** *** 1,4 **** ! /* $OpenBSD: util.c,v 1.72 2015/03/17 19:31:30 millert Exp $ */ /* $NetBSD: util.c,v 1.12 1997/08/18 10:20:27 lukem Exp $ */ /*- --- 1,4 ---- ! /* $OpenBSD: util.c,v 1.73 2015/10/18 03:04:11 mmcc Exp $ */ /* $NetBSD: util.c,v 1.12 1997/08/18 10:20:27 lukem Exp $ */ /*- *************** *** 488,494 **** (void)fflush(ttyout); if (fgets(str, sizeof(str), stdin) == NULL) goto quit; ! switch (tolower(*str)) { case '?': fprintf(ttyout, "? help\n" --- 488,494 ---- (void)fflush(ttyout); if (fgets(str, sizeof(str), stdin) == NULL) goto quit; ! switch (tolower((unsigned char)*str)) { case '?': fprintf(ttyout, "? help\n" *************** *** 582,588 **** if (cp != NULL) { cp++; size = strtoq(cp, &ep, 10); ! if (*ep != '\0' && !isspace(*ep)) size = -1; } } else if (noisy --- 582,588 ---- if (cp != NULL) { cp++; size = strtoq(cp, &ep, 10); ! if (*ep != '\0' && !isspace((unsigned char)*ep)) size = -1; } } else if (noisy *************** *** 626,634 **** char *timestr = reply_string; /* Repair `19%02d' bug on server side */ ! while (!isspace(*timestr)) timestr++; ! while (isspace(*timestr)) timestr++; if (strncmp(timestr, "191", 3) == 0) { fprintf(ttyout, --- 626,634 ---- char *timestr = reply_string; /* Repair `19%02d' bug on server side */ ! while (!isspace((unsigned char)*timestr)) timestr++; ! while (isspace((unsigned char)*timestr)) timestr++; if (strncmp(timestr, "191", 3) == 0) { fprintf(ttyout,