BBS: TELESC.NET.BR
Assunto: src/sbbs3/main.cpp services.cpp src/xpdev/ini_file.c multisock.c
De: Rob Swindell (on Windows 11)
Data: Sat, 2 May 2026 18:58:15 -0700
-----------------------------------------------------------
https://gitlab.synchro.net/main/sbbs/-/commit/7395d2adefc34cf74caabc2f
Modified Files:
src/sbbs3/main.cpp services.cpp src/xpdev/ini_file.c multisock.c
Log Message:
sbbs3,xpdev: enlarge socket-error message buffers from 128 to 256
On Windows, FormatMessageA() inside socket_strerror() can produce
descriptions longer than 128 bytes for some WSA errors. WSAESHUTDOWN's
localized text is ~135 bytes ("A request to send or receive data was
disallowed because the socket had already been shut down in that
direction with a previous shutdown call."). When the buffer is too
small, FormatMessageA fails with ERROR_INSUFFICIENT_BUFFER and the
caller sees the fallback "Error 122 getting error description" instead
of the real message.
Bump the seven remaining call sites that still passed [128] to
SOCKET_STRERROR (main.cpp output_thread, services.cpp x3, multisock.c
x2, ini_file.c) up to [256], matching services.cpp's other buffers
(error[256] at lines 283 and 1940).
Co-Authored-By: Claude Opus 4.7 (1M context)
n
---
mSynchronetn hgVertrauen n hHome of Synchronet n gh[vert/cvs/bbs].synchro.net
-----------------------------------------------------------
[Voltar]