]> granicus.if.org Git - nethack/commit
code in parse_conf_file() to trim trailing blanks/cr was missing them
authornhmall <nhmall@nethack.org>
Sat, 22 Jun 2019 04:05:16 +0000 (00:05 -0400)
committernhmall <nhmall@nethack.org>
Sat, 22 Jun 2019 04:05:16 +0000 (00:05 -0400)
commiteaa8c278c88003562aaade45e223b5e656bbdba8
tree81d29b5d2c41c09d69040250ba1719836a5ac661
parent2fe57af3f34de78ed15d590927ada6b3f6a54268
code in parse_conf_file() to trim trailing blanks/cr was missing them

Observed on a text file with crlf endings on Linux, where the
so-called blank lines weren't being ignored as they should
have been, despite there being a line to remove \r from the
end.

A pointer was being pre-decremented before the check for a
matching whitespace character.
doc/fixes36.3
src/files.c