https://gitlab.synchro.net/main/sbbs/-/commit/019d675204aa61a1f8f37128
Modified Files:
docs/v322_new.md src/sbbs3/con_out.cpp sbbs.h
Log Message:
rputs(): an explicit length of 0 writes nothing
rputs() treated a length of 0 as "NUL-terminated", so a caller passing a computed length that came out 0 sent whatever followed in its buffer. external() does exactly that with output wwiv_expand() reduced to
nothing (a lone WWIV Ctrl-C, or only color codes for a non-ANSI user),
whose wwiv_buf is not NUL-terminated: on Windows since ffef77363c (weird-20-quad, 2019-07-06), and on *nix since 3b911c6425
(analog-27-eyed, 2026-11-29).
The default length is now SIZE_MAX, as for cp437_out() and term_out(),
so rputs(str) still writes the whole string.
Remove the rputs(int mode, const char*) overload: copied from the bputs()
one, it passed the mode as the length. Nothing called it.
Co-Authored-By: Claude Opus 5.5 <
noreply@anthropic.com>
---
■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net