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

Diff for /src/usr.bin/top/Attic/username.c between version 1.2 and 1.3

version 1.2, 1997/08/22 07:16:31 version 1.3, 2001/07/27 17:04:06
Line 132 
Line 132 
   
     /* empty or wrong slot -- fill it with new value */      /* empty or wrong slot -- fill it with new value */
     hash_table[hashindex].uid = uid;      hash_table[hashindex].uid = uid;
     (void) strncpy(hash_table[hashindex].name, name, 8);      (void) strlcpy(hash_table[hashindex].name, name,
                  sizeof(hash_table[hashindex].name));
     return(hashindex);      return(hashindex);
 }  }
   

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3