diff --git a/source/shared_lib/sources/platform/posix/socket.cpp b/source/shared_lib/sources/platform/posix/socket.cpp index 8f6e3c5f5..b9509e90a 100644 --- a/source/shared_lib/sources/platform/posix/socket.cpp +++ b/source/shared_lib/sources/platform/posix/socket.cpp @@ -196,6 +196,7 @@ Mutex UPNP_Tools::mutexUPNP; { // Build basic error string static char acErrorBuffer[8096]; + std::ostrstream outs(acErrorBuffer, 8095); outs << pcMessagePrefix << ": "; // Tack appropriate canned message onto end of supplied message