mirror of
https://github.com/glest/glest-source.git
synced 2025-08-20 23:21:19 +02:00
- add a few more safety's in the code to avoid memory issues
This commit is contained in:
@@ -196,6 +196,7 @@ Mutex UPNP_Tools::mutexUPNP;
|
|||||||
{
|
{
|
||||||
// Build basic error string
|
// Build basic error string
|
||||||
static char acErrorBuffer[8096];
|
static char acErrorBuffer[8096];
|
||||||
|
std::ostrstream outs(acErrorBuffer, 8095);
|
||||||
outs << pcMessagePrefix << ": ";
|
outs << pcMessagePrefix << ": ";
|
||||||
|
|
||||||
// Tack appropriate canned message onto end of supplied message
|
// Tack appropriate canned message onto end of supplied message
|
||||||
|
Reference in New Issue
Block a user