summaryrefslogtreecommitdiffstats
path: root/sys/lib/libkern
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2016-05-10 10:49:37 +0000
committerschwarze <schwarze@openbsd.org>2016-05-10 10:49:37 +0000
commitdddc8490d90a7478ec6b2430fb09b5626543ec88 (patch)
tree28e152b4bd7def28fba67dde2d9817e4775d970e /sys/lib/libkern
parenttypo in comment (diff)
downloadwireguard-openbsd-dddc8490d90a7478ec6b2430fb09b5626543ec88.tar.xz
wireguard-openbsd-dddc8490d90a7478ec6b2430fb09b5626543ec88.zip
Fix history_get():
* Respect history_base. * Bail out early for arguments that are too small. * Select entry by readline offset, not by editline event number. * Restore history cursor in case of failure. This fixes the test_remove() regression test. Based on a patch from Bastian Maerkisch <bmaerkisch at web dot de>. Dmitrij Czarkoff pointed out a flaw in it that i fixed. OK czarkoff@.
Diffstat (limited to 'sys/lib/libkern')
0 files changed, 0 insertions, 0 deletions