Return to username.c CVS log | Up to [local] / src / usr.bin / top |
version 1.2, 1997/08/22 07:16:31 | version 1.3, 2001/07/27 17:04:06 | ||
---|---|---|---|
|
|
||
/* 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); | ||
} | } | ||