summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2014-05-09 02:47:25 +0000
committerschwarze <schwarze@openbsd.org>2014-05-09 02:47:25 +0000
commitf84850bae1a386b9d68713b88593232d04e13269 (patch)
tree44427255930172d1c2c982071270e95085600771 /lib/libc
parentVarious cleanup: (diff)
downloadwireguard-openbsd-f84850bae1a386b9d68713b88593232d04e13269.tar.xz
wireguard-openbsd-f84850bae1a386b9d68713b88593232d04e13269.zip
After entering an invalid three-letter card name, one letter card names
stopped working because the third letter remained in the buffer, incard() skipped the NUL and used the old garbage. Fix this bug reported by pjanzen@, but in a simpler way than he suggested, by just clearing any trailing garbage from the buffer. ok pjanzen@
Diffstat (limited to 'lib/libc')
0 files changed, 0 insertions, 0 deletions