summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2001-08-03 22:43:16 +0000
committermillert <millert@openbsd.org>2001-08-03 22:43:16 +0000
commitbef99ed0f42ecb62acb8b227b61a44a6d4fc8196 (patch)
tree86650072ccabcf3da5891f688714402166140b89 /lib
parentNote Acard support and bugs with AMD, OPTi (diff)
downloadwireguard-openbsd-bef99ed0f42ecb62acb8b227b61a44a6d4fc8196.tar.xz
wireguard-openbsd-bef99ed0f42ecb62acb8b227b61a44a6d4fc8196.zip
Add back NUL termination of 'word' in complete() that was erroneously
removed in strlcpy() conversion. Previously we were trying to strlcpy() a pointer that could be NULL. Now we check that the length != 0 and use memcpy() instead, then NUL terminate by hand to catch the other cases. Core dump noticed by fgs@
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions