diff options
author | 2001-08-03 22:43:16 +0000 | |
---|---|---|
committer | 2001-08-03 22:43:16 +0000 | |
commit | bef99ed0f42ecb62acb8b227b61a44a6d4fc8196 (patch) | |
tree | 86650072ccabcf3da5891f688714402166140b89 /lib | |
parent | Note Acard support and bugs with AMD, OPTi (diff) | |
download | wireguard-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