• src/syncterm/conn_conpty.c

    From Deucе@1:103/705 to Git commit to main/sbbs/master on Sun Mar 15 14:09:13 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/2836b0a2fe1df7c154492ad0
    Modified Files:
    src/syncterm/conn_conpty.c
    Log Message:
    Fix get_utf8_span() boundary checks in conn_conpty.c

    Multi-byte UTF-8 completeness checks compared (b + N) <= last after
    advancing b past the sequence, requiring N extra bytes beyond the
    sequence end. Changed all three cases to (b - 1) <= last, which
    correctly checks that the last byte of the sequence is within bounds. Previously, complete multi-byte sequences at the buffer end were
    incorrectly excluded from the span count.

    Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
    --- SBBSecho 3.37-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)