• src/xpdoor/dropfiles.c

    From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Sun Aug 9 07:19:11 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/ba8ae1b7dcbfbe791d3d774a
    Modified Files:
    src/xpdoor/dropfiles.c
    Log Message:
    xpdoor: fix inverted ANSI/CP437 detection when parsing DOOR.SYS

    A truthy strcmp() means "not equal", so a graphics mode (line 20) of
    "GR" yielded CP437 without ANSI and "NG" yielded both, exactly
    backwards.

    Comparing against 0 alone is not enough: GETBUF() leaves the line
    terminator in the buffer, unlike GETSBUF(), which runs truncnl(). The
    corrected comparison would never match, and every caller would come
    away with no display flags at all.

    Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

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