Changes between Version 1 and Version 2 of Ticket #4627, comment 2


Ignore:
Timestamp:
01/06/25 20:40:14 (2 days ago)
Author:
egmont
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #4627, comment 2

    v1 v2  
    33In `help_back()`, this value causes an out-of-bounds access to the `history` array, thus placing random noise in `currentpoint` and `selected_item`, the former used subsequently by `help_bg_callback()` and passed to `help_show()`. 
    44 
    5 I guess the `for` loop should use `int i` as its counter, or reset `history_ptr = 0` afterwards. Pick whichever you prefer ;) 
     5I guess the `for` loop should use `int i` as its counter, or reset `history_ptr = 0` afterwards. I've verified both to fix the problem. Pick whichever you prefer ;)