https://gitlab.synchro.net/main/sbbs/-/issues/218#note_1570
So I think there's at least 2 issues here. First, this line in `js_uifc.c` seems suspect:``` p->bar = INT_MAX;```We want the bar to default to 0 (the top of the list), not the bottom of the list.But still, leaving this value at INT_MAX is a good test of the cur/bar value checking logic in uifc32.c:ulist().Given the test script, `i` on line 930 becomes `-4` and the following `if()` condition is not executed, so from that point on, `bar` and `cur` are out of sync and strange stuff happens.Initializing `p->bar` to 0 in `js_uifc.c` makes this test script look/work fine, but the out-of-range `bar` value correction in uifc32.c's `ulist()` is clearly still broken.
--- SBBSecho 3.12-Linux
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)