[BACK]Return to util.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / ftp

Diff for /src/usr.bin/ftp/util.c between version 1.72 and 1.73

version 1.72, 2015/03/17 19:31:30 version 1.73, 2015/10/18 03:04:11
Line 488 
Line 488 
         (void)fflush(ttyout);          (void)fflush(ttyout);
         if (fgets(str, sizeof(str), stdin) == NULL)          if (fgets(str, sizeof(str), stdin) == NULL)
                 goto quit;                  goto quit;
         switch (tolower(*str)) {          switch (tolower((unsigned char)*str)) {
                 case '?':                  case '?':
                         fprintf(ttyout,                          fprintf(ttyout,
                             "?  help\n"                              "?  help\n"
Line 582 
Line 582 
                 if (cp != NULL) {                  if (cp != NULL) {
                         cp++;                          cp++;
                         size = strtoq(cp, &ep, 10);                          size = strtoq(cp, &ep, 10);
                         if (*ep != '\0' && !isspace(*ep))                          if (*ep != '\0' && !isspace((unsigned char)*ep))
                                 size = -1;                                  size = -1;
                 }                  }
         } else if (noisy          } else if (noisy
Line 626 
Line 626 
                 char *timestr = reply_string;                  char *timestr = reply_string;
   
                 /* Repair `19%02d' bug on server side */                  /* Repair `19%02d' bug on server side */
                 while (!isspace(*timestr))                  while (!isspace((unsigned char)*timestr))
                         timestr++;                          timestr++;
                 while (isspace(*timestr))                  while (isspace((unsigned char)*timestr))
                         timestr++;                          timestr++;
                 if (strncmp(timestr, "191", 3) == 0) {                  if (strncmp(timestr, "191", 3) == 0) {
                         fprintf(ttyout,                          fprintf(ttyout,

Legend:
Removed from v.1.72  
changed lines
  Added in v.1.73