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

Diff for /src/usr.bin/finger/net.c between version 1.7 and 1.8

version 1.7, 1999/12/11 10:05:04 version 1.8, 2003/03/13 15:47:10
Line 102 
Line 102 
   
         /* have network connection; identify the host connected with */          /* have network connection; identify the host connected with */
         if (getnameinfo(res->ai_addr, res->ai_addrlen, hbuf, sizeof(hbuf),          if (getnameinfo(res->ai_addr, res->ai_addrlen, hbuf, sizeof(hbuf),
                         NULL, 0, NI_NUMERICHOST) != 0) {              NULL, 0, NI_NUMERICHOST) != 0) {
                 strcpy(hbuf, "(invalid)");                  strlcpy(hbuf, "(invalid)", sizeof hbuf);
         }          }
         (void)printf("[%s/%s]\n", host, hbuf);          (void)printf("[%s/%s]\n", host, hbuf);
   

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8