BBS:      TELESC.NET.BR
Assunto:  src/syncterm/bbslist.c
De:       Deuc¨
Data:     Sun, 15 Mar 2026 14:09:13 -0700
-----------------------------------------------------------
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 
n
---
  mSynchronetn  hgVertrauen n hHome of Synchronet n gh[vert/cvs/bbs].synchro.net

-----------------------------------------------------------
[Voltar]