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

Diff for /src/usr.bin/ftp/cmds.c between version 1.74 and 1.75

version 1.74, 2015/01/30 04:45:45 version 1.75, 2015/10/18 03:04:11
Line 279 
Line 279 
                         if (mflag && confirm(argv[0], cp)) {                          if (mflag && confirm(argv[0], cp)) {
                                 tp = cp;                                  tp = cp;
                                 if (mcase) {                                  if (mcase) {
                                         while (*tp && !islower(*tp)) {                                          while (*tp && !islower((unsigned char)*tp)) {
                                                 tp++;                                                  tp++;
                                         }                                          }
                                         if (!*tp) {                                          if (!*tp) {
                                                 tp = cp;                                                  tp = cp;
                                                 tp2 = tmpbuf;                                                  tp2 = tmpbuf;
                                                 while ((*tp2 = *tp) != '\0') {                                                  while ((*tp2 = *tp) != '\0') {
                                                      if (isupper(*tp2)) {                                                       if (isupper((unsigned char)*tp2)) {
                                                             *tp2 =                                                              *tp2 =
                                                                 tolower(*tp2);                                                                  tolower((unsigned char)*tp2);
                                                      }                                                       }
                                                      tp++;                                                       tp++;
                                                      tp2++;                                                       tp2++;

Legend:
Removed from v.1.74  
changed lines
  Added in v.1.75