summaryrefslogtreecommitdiffstats
path: root/mansearch.3
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2020-01-25 22:59:22 +0000
committerIngo Schwarze <schwarze@openbsd.org>2020-01-25 22:59:22 +0000
commit9a0648ee1954e83311194a35ce390db361aeac67 (patch)
treecaa1728eed961eef1285307b8908857673c759a7 /mansearch.3
parentbd6f66569773d0cec18ee728ff380ff738d81246 (diff)
downloadmandoc-9a0648ee1954e83311194a35ce390db361aeac67.tar.gz
Minor cleanup, no functional change:
Do not abuse strstr(3) to check whether one long string starts with another long string. Instead, use strncmp(3) with the proper length. In set_basedir(), also reset *basedir in the error brances for extra safety. While here, invert some more Yoda conditions in the neighbourhood.
Diffstat (limited to 'mansearch.3')
0 files changed, 0 insertions, 0 deletions