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

Diff for /src/usr.bin/ftp/ftp.c between version 1.51 and 1.52

version 1.51, 2003/03/11 04:01:29 version 1.52, 2003/04/05 17:19:47
Line 1663 
Line 1663 
         ip->ntflg = ntflag;          ip->ntflg = ntflag;
         ntflag = op->ntflg;          ntflag = op->ntflg;
         (void)strlcpy(ip->nti, ntin, sizeof(ip->nti));          (void)strlcpy(ip->nti, ntin, sizeof(ip->nti));
         (void)strcpy(ntin, op->nti);          (void)strlcpy(ntin, op->nti, sizeof ntin);
         (void)strlcpy(ip->nto, ntout, sizeof(ip->nto));          (void)strlcpy(ip->nto, ntout, sizeof(ip->nto));
         (void)strcpy(ntout, op->nto);          (void)strlcpy(ntout, op->nto, sizeof ntout);
         ip->mapflg = mapflag;          ip->mapflg = mapflag;
         mapflag = op->mapflg;          mapflag = op->mapflg;
         (void)strlcpy(ip->mi, mapin, sizeof(ip->mi));          (void)strlcpy(ip->mi, mapin, sizeof(ip->mi));
         (void)strcpy(mapin, op->mi);          (void)strlcpy(mapin, op->mi, sizeof mapin);
         (void)strlcpy(ip->mo, mapout, sizeof(ip->mo));          (void)strlcpy(ip->mo, mapout, sizeof(ip->mo));
         (void)strcpy(mapout, op->mo);          (void)strlcpy(mapout, op->mo, sizeof mapout);
         (void)signal(SIGINT, oldintr);          (void)signal(SIGINT, oldintr);
         if (abrtflag) {          if (abrtflag) {
                 abrtflag = 0;                  abrtflag = 0;
Line 1856 
Line 1856 
                 warn("local: %s", local);                  warn("local: %s", local);
                 return ((char *) 0);                  return ((char *) 0);
         }          }
         (void)strcpy(new, local);          (void)strlcpy(new, local, sizeof new);
         cp = new + strlen(new);          cp = new + strlen(new);
         *cp++ = '.';          *cp++ = '.';
         while (!d) {          while (!d) {

Legend:
Removed from v.1.51  
changed lines
  Added in v.1.52