1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-29 09:44:52 +01:00
This commit is contained in:
Marijn van der Werf
2016-10-16 21:22:18 +02:00
parent 334b8cca05
commit 6c54bba6f6
2 changed files with 5 additions and 3 deletions

View File

@@ -14,6 +14,8 @@
*****************************************************************************/
#pragma endregion
#include <cstdarg>
#include "String.hpp"
namespace String {
@@ -21,11 +23,11 @@ namespace String {
{
va_list args;
char buffer[512];
va_start(args, format);
vsnprintf(buffer, sizeof(buffer), format, args);
va_end(args);
return std::string(buffer);
}
};