]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix off-by-one error in processing of #ifdef lines
authorse <se@FreeBSD.org>
Wed, 28 Oct 2020 13:30:24 +0000 (13:30 +0000)
committerse <se@FreeBSD.org>
Wed, 28 Oct 2020 13:30:24 +0000 (13:30 +0000)
commit90d698d9fd257cb21d68e8bd94c13f5ef92ea278
tree708109c67da9a415c31d89ca88a4d0920ed3f842
parent24e34c1b304983cf833cb438e7e39522c64139b1
Fix off-by-one error in processing of #ifdef lines

The convention in this program is to parse the line immediately starting
after the token (e.g. #defineA and #ifdefA define respectively look-up "A"),
and this commit restores this behavior instead of skipping an assumed
white-space character following #ifdef.

Reported by: kevans
MFC after: 3 days
usr.bin/calendar/io.c