- add a few more safety's in the code to avoid memory issues

This commit is contained in:
Mark Vejvoda
2013-02-08 07:56:46 +00:00
parent 74d7841c4d
commit da611f8a1f

View File

@@ -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