mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-27 06:55:54 -04:00
Fix parameter type mismatch
This commit is contained in:
parent
e2522fa366
commit
b57ed2c119
@ -97,7 +97,7 @@ void Log::print(int level, bool hasPrefix, const char *file, int line, const cha
|
||||
sstr << '\n';
|
||||
va_list args;
|
||||
va_start(args, message);
|
||||
vector<char> buf(vsnprintf(NULL, 0, sstr.str().c_str(), args) + 1);
|
||||
vector<char> buf((unsigned long) (vsnprintf(NULL, 0, sstr.str().c_str(), args) + 1));
|
||||
va_end(args);
|
||||
va_start(args, message);
|
||||
vsnprintf(buf.data(), buf.size(), sstr.str().c_str(), args);
|
||||
|
Loading…
x
Reference in New Issue
Block a user