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

Diff for /src/usr.bin/ftp/small.c between version 1.2 and 1.3

version 1.2, 2014/08/16 07:49:27 version 1.3, 2015/01/16 06:40:08
Line 242 
Line 242 
         }          }
         globargv2 = argv[2];          globargv2 = argv[2];
         if (loc && mcase) {          if (loc && mcase) {
                 char *tp = argv[1], *tp2, tmpbuf[MAXPATHLEN];                  char *tp = argv[1], *tp2, tmpbuf[PATH_MAX];
   
                 while (*tp && !islower(*tp)) {                  while (*tp && !islower(*tp)) {
                         tp++;                          tp++;
Line 329 
Line 329 
         extern int optind, optreset;          extern int optind, optreset;
         sig_t oldintr;          sig_t oldintr;
         int ch, xargc = 2;          int ch, xargc = 2;
         char *cp, localcwd[MAXPATHLEN], *xargv[] = { argv[0], NULL, NULL };          char *cp, localcwd[PATH_MAX], *xargv[] = { argv[0], NULL, NULL };
         static int restartit = 0;          static int restartit = 0;
 #ifndef SMALL  #ifndef SMALL
         extern char *optarg;          extern char *optarg;
Line 532 
Line 532 
 char *  char *
 dotrans(char *name)  dotrans(char *name)
 {  {
         static char new[MAXPATHLEN];          static char new[PATH_MAX];
         char *cp1, *cp2 = new;          char *cp1, *cp2 = new;
         int i, ostop, found;          int i, ostop, found;
   
Line 560 
Line 560 
 char *  char *
 domap(char *name)  domap(char *name)
 {  {
         static char new[MAXPATHLEN];          static char new[PATH_MAX];
         char *cp1 = name, *cp2 = mapin;          char *cp1 = name, *cp2 = mapin;
         char *tp[9], *te[9];          char *tp[9], *te[9];
         int i, toks[9], toknum = 0, match = 1;          int i, toks[9], toknum = 0, match = 1;

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3