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

Diff for /src/usr.bin/netstat/Attic/iso.c between version 1.6 and 1.7

version 1.6, 1997/06/29 21:46:02 version 1.7, 1998/02/27 12:07:36
Line 401 
Line 401 
                 if( ihe ) {                  if( ihe ) {
                         Ihe = *ihe;                          Ihe = *ihe;
                         ihe = &Ihe;                          ihe = &Ihe;
                         sprintf(line, "%s", ihe->isoh_hname);                          snprintf(line, sizeof line, "%s", ihe->isoh_hname);
                 } else {                  } else {
                         sprintf(line, "%s", iso_ntoa(iso));                          snprintf(line, sizeof line, "%s", iso_ntoa(iso));
                 }                  }
         } else {          } else {
                 sprintf(line, "*");                  snprintf(line, sizeof line, "*");
         }          }
         return line;          return line;
 }  }
Line 449 
Line 449 
                         ihe = &Ihe;                          ihe = &Ihe;
                 }                  }
                 if( ihe && (strlen(ihe->isoh_aname)>0) ) {                  if( ihe && (strlen(ihe->isoh_aname)>0) ) {
                         sprintf(cp, "%s", ihe->isoh_aname);                          snprintf(cp, line + sizeof line - cp, "%s",
                               ihe->isoh_aname);
                 } else  {                  } else  {
                         iso_sprinttsel(cp, sufx, sufxlen);                          iso_sprinttsel(cp, sufx, sufxlen);
                 }                  }
         } else          } else
                 sprintf(cp, "*");                  snprintf(cp, line + sizeof line - cp, "*");
         /*          /*
         fprintf(stdout, Aflag?" %-18.18s":" %-22.22s", line);          fprintf(stdout, Aflag?" %-18.18s":" %-22.22s", line);
         */          */

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