Fix an off-by-one string read access that could happen if an empty
authorschwarze <schwarze@openbsd.org>
Wed, 1 Aug 2018 16:00:54 +0000 (16:00 +0000)
committerschwarze <schwarze@openbsd.org>
Wed, 1 Aug 2018 16:00:54 +0000 (16:00 +0000)
commit89db6ba1858a3f1fa9ced864bcd58b3c35580929
treec8a3276b68eae1285a41b23aa51e114f620a2297
parent1af18cc176787adb8047614c2af737b43dee895b
Fix an off-by-one string read access that could happen if an empty
string argument preceded a string argument beginning with "--".
Found by Leah Neukirchen <leah at vuxu dot org> with -Wpointer-compare.
usr.bin/mandoc/mdoc_validate.c