• src/sbbs3/writemsg.cpp

    From Rob Swindell (on Windows 11)@VERT to Git commit to main/sbbs/master on Mon Mar 2 23:37:52 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/9abbcf31c3e92cc111f9189c
    Modified Files:
    src/sbbs3/writemsg.cpp
    Log Message:
    Display changed attributes in change msg attribute function

    This appears to have been broken since commit 556225fa7 (4 years ago, addressing a Coverity complaint <sigh>).

    When changing (toggling) the attributes of a message, the new/changed attributes were supposed to be shown, but were not. Exiting did save those attributes correctly, but the UI was very non-intuitive because of this bug.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Wed May 6 19:41:53 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/a7106cca0cf813beb39710d0
    Modified Files:
    src/sbbs3/writemsg.cpp
    Log Message:
    writemsg: bail out on ftell error before reusing offset (CID 640333)

    writemsg() captures the message-start offset with ftell() and reuses
    it via three subsequent fseek(stream, l, SEEK_SET) calls. ftell may
    return -1 on error, in which case the fseek calls would seek to a
    negative offset (UB) and corrupt the quoted-text buffer. Bail out
    cleanly instead, mirroring the existing error-cleanup paths.

    Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Wed May 6 22:36:57 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/fcffe36822eb49d81f25d7f6
    Modified Files:
    src/sbbs3/writemsg.cpp
    Log Message:
    writemsg: handle fseek/fexistcase return values (CIDs 486496, 548248)

    - writemsg(): two fexistcase() calls are case-fix-only (same pattern
    as 76b5c7f43); cast to (void).
    - movemsg(): combine fseek+fread error handling so a seek failure
    takes the same error-recovery path as a read failure.

    Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Thu May 7 20:26:43 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/8d91e80d1fc5a8f103574ef8
    Modified Files:
    src/sbbs3/writemsg.cpp
    Log Message:
    writemsg: change l to long so ftell() error check works (CID 645990)

    l was declared uint, so the (l < 0) check after l = (long)ftell(stream)
    was always false. ftell() returns long and can return -1 on error.
    Update the (ulong) casts on the level_linespermsg comparisons accordingly.

    Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Windows 11)@VERT to Git commit to main/sbbs/master on Sat Dec 5 15:42:10 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/bc37406b8b567a4417f36f15
    Modified Files:
    src/sbbs3/writemsg.cpp
    Log Message:
    Message editor: keep the screen in sync when moving between lines (#1473)

    Up-arrow in the internal message editor moved the cursor up a row without checking that the row showed the line being edited. Above the top of the screen, or after a slash command had printed something, the user edited
    a line they couldn't see, over the text of a different one. Inserting or removing a line in the middle redrew every following line and then moved
    back up by line count, which scrolled a long message and lost the cursor.

    msgeditor() now tracks how many lines directly above the cursor are shown correctly. Moving up beyond those clears the screen and redraws a window
    around the target line; drawing the lines below stops at the bottom row.

    Moving up or down keeps the cursor's display column rather than its byte offset, so it stays put across UTF-8 and double-width characters, and left-arrow/backspace at column 0 lands at the end of the previous line.

    On terminals that can't move the cursor, the up/left/backspace line exits
    now keep editing the current line instead of silently changing lines.

    Also fixed: edits to the first line were discarded when up-arrow was
    pressed on it, and "Only N lines left" was printed (over the screen) when editing a line in the middle of the message.

    The arrow-key navigation dates from 3557bc54a0 (2018-12-30).

    Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Windows 11)@VERT to Git commit to main/sbbs/master on Sat Dec 5 23:03:19 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/2f2bffc978092aed10bbbafb
    Modified Files:
    src/sbbs3/writemsg.cpp
    Log Message:
    Message editor: redraw the screen's last row too

    When the editor redrew the screen (moving up past the top of the screen, Ctrl-R) or the lines below the cursor, it stopped one row short of the
    bottom, since a newline after a line drawn there would scroll. The last
    row stayed blank until the cursor moved onto it. That line is now drawn
    without the newline.

    Bug introduced in bc37406b8b (2026-12-05).

    Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

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