diff --git a/src/common/conf.cpp b/src/common/conf.cpp index b63d49c..2c04ec4 100644 --- a/src/common/conf.cpp +++ b/src/common/conf.cpp @@ -89,7 +89,9 @@ namespace pvpgn extern const char* conf_get_int(unsigned ival) { - return std::to_string(ival).c_str(); + static char buffer[128] = {}; + std::snprintf(buffer, sizeof buffer, "%u", ival); + return buffer; } extern const char* conf_get_bool(unsigned ival)