From da611f8a1f94daa2e56b9e7fba2330c788048972 Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Fri, 8 Feb 2013 07:56:46 +0000 Subject: [PATCH] - add a few more safety's in the code to avoid memory issues --- source/shared_lib/sources/platform/posix/socket.cpp | 1 + 1 file changed, 1 insertion(+) 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