summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/malloc.c
diff options
context:
space:
mode:
authorkrw <krw@openbsd.org>2016-01-26 21:07:54 +0000
committerkrw <krw@openbsd.org>2016-01-26 21:07:54 +0000
commit38bdfd734d3af2cad2681dd2e615cd0996ed2215 (patch)
tree69d471e39379c5236f1d584d479fe928383214d9 /lib/libc/stdlib/malloc.c
parentRemove needless zeroing. Anonymously mapped memory is always zeroed. (diff)
downloadwireguard-openbsd-38bdfd734d3af2cad2681dd2e615cd0996ed2215.tar.xz
wireguard-openbsd-38bdfd734d3af2cad2681dd2e615cd0996ed2215.zip
dpme_name and dpme_type are NUL-terminated in Apple code, so use
strlcpy() to fill them. They are also supposed to be NUL-padded so zap previous contents before copying in possibly shorter new values.
Diffstat (limited to 'lib/libc/stdlib/malloc.c')
0 files changed, 0 insertions, 0 deletions