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

Diff for /src/usr.bin/nc/netcat.c between version 1.95 and 1.96

version 1.95, 2010/02/27 00:58:56 version 1.96, 2010/04/20 07:26:34
Line 766 
Line 766 
                 hi = strtonum(p, 1, PORT_MAX, &errstr);                  hi = strtonum(p, 1, PORT_MAX, &errstr);
                 if (errstr)                  if (errstr)
                         errx(1, "port number %s: %s", errstr, p);                          errx(1, "port number %s: %s", errstr, p);
                 portlist[0] = calloc(1, PORT_MAX_LEN);                  portlist[0] = strdup(p);
                 if (portlist[0] == NULL)                  if (portlist[0] == NULL)
                         err(1, NULL);                          err(1, NULL);
                 portlist[0] = p;  
         }          }
 }  }
   

Legend:
Removed from v.1.95  
changed lines
  Added in v.1.96