micro fopenp() fix

From a bug report.  I can't test this fix, but
inspection of the code shows that his suggested fix is clearly
necessary.  Once `bp' gets incremented, storing via `bp[BUFSZ-1]'
writes beyond the bounds of `buf' and clobbers something.
This commit is contained in:
nethack.rankin
2002-01-23 07:12:58 +00:00
parent 994dbd7694
commit bbf7ada0dd
2 changed files with 3 additions and 2 deletions

View File

@@ -428,6 +428,7 @@ win32/tty: menus can take advantage of consoles larger than 80x25
win32/tty: add support for inverse attribute
micro: prevent a guaranteed impossible() if we ever have more than (COLNO - 1)
levels in the game
micro: fix out of bounds memory modification for file opens via PATH
msdos: placeholder tiles accepted by the thin tile builder
X11: viewport scrolling could scroll the the wrong place with resized window
X11: allow extra space added to map widget to be removed if widget shrinks