• src/syncterm/conn_conpty.c

    From Deuc¿@VERT to Git commit to main/sbbs/master on Saturday, October 04, 2025 20:29:09
    https://gitlab.synchro.net/main/sbbs/-/commit/030f8b8fb38623f84081c0cf
    Modified Files:
    src/syncterm/conn_conpty.c
    Log Message:
    Fix some warnings when built with MSVC

    ---
    � Synchronet � Vertrauen � Home of Synchronet � [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT to Git commit to main/sbbs/master on Sunday, March 15, 2026 14:09:13
    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 <[email protected]>

    ---
    � Synchronet � Vertrauen � Home of Synchronet � [vert/cvs/bbs].synchro.net