basename(3) can fail, prevent segfault in strlen(3).
authorflorian <florian@openbsd.org>
Wed, 12 Jul 2023 15:44:47 +0000 (15:44 +0000)
committerflorian <florian@openbsd.org>
Wed, 12 Jul 2023 15:44:47 +0000 (15:44 +0000)
commitce198a4ac75aa517e9553db3ab18b8df8947c0a0
tree5a46969cc19b65a9ea63601259be7ec1280b45ef
parenta96576c0d59f31a4c415a430ccf0358408b51e8d
basename(3) can fail, prevent segfault in strlen(3).
OK tb, sthen
usr.bin/patch/pch.c