diff --git a/source/glest_game/network/network_types.h b/source/glest_game/network/network_types.h index 9806e691..33b92931 100644 --- a/source/glest_game/network/network_types.h +++ b/source/glest_game/network/network_types.h @@ -18,6 +18,7 @@ #include "vec.h" using std::string; +using std::min; using Shared::Platform::int8; using Shared::Platform::uint8; using Shared::Platform::int16; @@ -43,7 +44,7 @@ public: void operator=(const string& str) { // ensure we don't have a buffer overflow int maxBufferSize = sizeof(buffer) / sizeof(buffer[0]); - strncpy(buffer, str.c_str(), std::min(S-1,maxBufferSize-1)); + strncpy(buffer, str.c_str(), min(S-1,maxBufferSize-1)); } string getString() const {return buffer;} };