https://gitlab.synchro.net/main/sbbs/-/commit/3c40ff95eaad51693eb4f60a
Modified Files:
src/syncterm/bbslist.c
Log Message:
Fix multiple bugs in bbslist.c
- Add NULL check after malloc in BBS list entry creation, undoing the
list manipulation on failure.
- printf_trunc: guard against size_t underflow when remain_len < 5
by falling back to "..." instead of indexing with a wrapped value.
- Fix strlcpy using sizeof(tmpn) instead of sizeof(tmpv) for the
destination buffer (harmless since both are same size, but wrong).
- Fix memory leak: asprintf allocations for File Locations and Build
Options showbuf dialogs were never freed. Add free(p) after each
showbuf call, guarded by NULL check on p.
Co-Authored-By: Claude Opus 4.6 <
noreply@anthropic.com>
--- SBBSecho 3.37-Linux
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)