diff options
author | 2003-04-10 00:04:58 +0000 | |
---|---|---|
committer | 2003-04-10 00:04:58 +0000 | |
commit | 642b79bd9fa9f4e2dfb484b2317bceda1825c508 (patch) | |
tree | 3aa9715092faecb87379f4928e1708d196683f3a /sys/kern/kern_malloc.c | |
parent | makeing local table static saves some bytes; idea from mickey@ (diff) | |
download | wireguard-openbsd-642b79bd9fa9f4e2dfb484b2317bceda1825c508.tar.xz wireguard-openbsd-642b79bd9fa9f4e2dfb484b2317bceda1825c508.zip |
Replace strcpy() w/ strlcpy() from espie@
Don't try to free pw_dir -- it is no longer allocated separately.
Instead, add an extra param to sgetpwnam() to allow it to dupe an
existing struct passwd * (instead of doing a lookup by username)
and use this to reallocate pw in the case where pw_dir is the NULL
string. deraadt@ OK
Diffstat (limited to 'sys/kern/kern_malloc.c')
0 files changed, 0 insertions, 0 deletions