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

Diff for /src/usr.bin/ftp/domacro.c between version 1.17 and 1.18

version 1.17, 2009/05/05 19:35:30 version 1.18, 2015/10/18 03:04:11
Line 65 
Line 65 
 TOP:  TOP:
         cp1 = macros[i].mac_start;          cp1 = macros[i].mac_start;
         while (cp1 != macros[i].mac_end) {          while (cp1 != macros[i].mac_end) {
                 while (isspace(*cp1)) {                  while (isspace((unsigned char)*cp1)) {
                         cp1++;                          cp1++;
                 }                  }
                 cp2 = line;                  cp2 = line;
Line 75 
Line 75 
                                  *cp2++ = *++cp1;                                   *cp2++ = *++cp1;
                                  break;                                   break;
                             case '$':                              case '$':
                                  if (isdigit(*(cp1+1))) {                                   if (isdigit((unsigned char)*(cp1 + 1))) {
                                     j = 0;                                      j = 0;
                                     while (isdigit(*++cp1)) {                                      while (isdigit((unsigned char)*++cp1)) {
                                           j = 10*j +  *cp1 - '0';                                            j = 10*j +  *cp1 - '0';
                                     }                                      }
                                     cp1--;                                      cp1--;

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18