From d8598bd6bb9f75867f4a3938482466016b9728d9 Mon Sep 17 00:00:00 2001 From: PatR Date: Sat, 31 Aug 2019 01:38:19 -0700 Subject: [PATCH 1/2] 'O' vs perm_invent (mostly) Update persistent inventory window if 'implicit_uncursed', 'menucolors', or 'guicolor' is toggled. (curses should be changed to use menucolors instead of guicolor to decide whether menu coloring is used. Right now it requires that both be On.) Also, EDIT_GETLIN was providing junk default response when message type or menu color looped and prompted for another entry after handling one. Mixed in with this is a fix for easily induced buffer overflow which has security ramifications.... --- doc/fixes36.3 | 11 ++++++++++- src/options.c | 45 +++++++++++++++++++++++++++++++++------------ 2 files changed, 43 insertions(+), 13 deletions(-) diff --git a/doc/fixes36.3 b/doc/fixes36.3 index 8677345fb..2fc55c341 100644 --- a/doc/fixes36.3 +++ b/doc/fixes36.3 @@ -1,4 +1,4 @@ -$NHDT-Branch: NetHack-3.6 $:$NHDT-Revision: 1.104 $ $NHDT-Date: 1567213888 2019/08/31 01:11:28 $ +$NHDT-Branch: NetHack-3.6 $:$NHDT-Revision: 1.105 $ $NHDT-Date: 1567240693 2019/08/31 08:38:13 $ This fixes36.3 file is here to capture information about updates in the 3.6.x lineage following the release of 3.6.2 in May 2019. Please note, however, @@ -127,6 +127,12 @@ when a shape-shifted sandestin was turned to stone, it died and reverted to instead of dying, make it revert to sandestin form with full health toggling perm_invent (where supported) while swallowed or underwater didn't necessarily update the persistent inventory window right away +have 'O' update persistent inventory window if 'implicit_uncursed', + 'menucolors', or 'guicolors' (curses) is toggled or if menucolors is + On and any menu color patterns are added or removed +'O's "set