summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_malloc.c
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2003-04-10 00:04:58 +0000
committermillert <millert@openbsd.org>2003-04-10 00:04:58 +0000
commit642b79bd9fa9f4e2dfb484b2317bceda1825c508 (patch)
tree3aa9715092faecb87379f4928e1708d196683f3a /sys/kern/kern_malloc.c
parentmakeing local table static saves some bytes; idea from mickey@ (diff)
downloadwireguard-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