[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.43 and 1.44

version 1.43, 2003/03/31 23:04:07 version 1.44, 2003/04/05 17:19:47
Line 152 
Line 152 
         else          else
                 comret = command("TYPE %s", p->t_mode);                  comret = command("TYPE %s", p->t_mode);
         if (comret == COMPLETE) {          if (comret == COMPLETE) {
                 (void)strcpy(typename, p->t_name);                  (void)strlcpy(typename, p->t_name, sizeof typename);
                 curtype = type = p->t_type;                  curtype = type = p->t_type;
         }          }
 }  }
Line 2242 
Line 2242 
         p = getenv("PAGER");          p = getenv("PAGER");
         if (p == NULL || (*p == '\0'))          if (p == NULL || (*p == '\0'))
                 p = PAGER;                  p = PAGER;
         if ((pager = malloc(strlen(p) + 2)) == NULL)          if (asprintf(&pager, "|%s", p) == -1)
                 errx(1, "Can't allocate memory for $PAGER");                  errx(1, "Can't allocate memory for $PAGER");
         (void)sprintf(pager, "|%s", p);  
   
         orestart_point = restart_point;          orestart_point = restart_point;
         ohash = hash;          ohash = hash;

Legend:
Removed from v.1.43  
changed lines
  Added in v.1.44