Files
nethack/include
PatR e43ec0cef1 fix odd messages caused by buffer re-use
Reported and diagnosed by entrez:
"The <mon> yanks <two-handed weapon> from your corpses!"

It became unwielded and that triggered a perm_invent update and
such updates reformat entire inventory, so if that contains a dozen
or more items it will use all the obuf[] static buffers as least
once.  In this case, the bullwhip code had plural of "hand" in one
of those buffers and by the time it delivered the message which
used that, the value had been clobbered.

As the diagnosis mentioned, it can be tricky to reproduce since
either &obuf[0] or &obuf[PREFIX] might be used and if the value
being clobbered didn't overlap, the effect wasn't noticeable.

Instead of fixing the bullwhip message, this changes inventory
display so that it should no longer churn through all the buffers.

It also adds a fixes entry for #K3401, which was already fixed for
3.7 but I hadn't been able to reproduce it for 3.6.x (which I now
blame on the PREFIX trickiness).
2021-09-15 20:56:06 -07:00
..
2021-01-03 13:37:25 -06:00
2021-02-07 22:25:25 -06:00
2020-10-14 09:25:45 -07:00
2021-02-08 00:11:07 -05:00
2021-08-28 16:22:38 -07:00
2021-08-14 09:16:27 -04:00
2021-01-26 21:06:16 -05:00
2021-07-30 16:35:36 +03:00
2020-01-29 10:29:37 -05:00
2019-01-28 10:02:08 +01:00
2021-01-20 22:18:34 -06:00
2020-12-04 09:30:21 +02:00
2021-07-23 10:41:57 -07:00
2021-09-06 17:36:52 -07:00
2021-06-16 13:14:32 +03:00
2020-12-13 10:27:49 -05:00
2021-01-26 21:06:16 -05:00
2021-08-10 13:35:25 -04:00
2020-08-12 16:15:28 -07:00
2021-01-26 21:06:16 -05:00
2021-01-26 21:06:16 -05:00
2021-01-31 14:15:08 -05:00
2021-03-14 15:12:46 -07:00
2021-01-31 12:49:22 -05:00
2021-03-13 18:18:53 -08:00
2021-03-13 18:17:00 -08:00
2021-03-13 18:18:53 -08:00
2021-03-16 09:13:55 -07:00
2021-01-26 10:27:51 -05:00