CVSROOT: /cvs Module name: src Changes by: [email protected] 2020/01/25 15:59:14
Modified files:
usr.bin/mandoc : mandocdb.c
Log message:
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.
