mirror of
https://github.com/korenkonder/ReDIVA.git
synced 2026-10-05 05:07:56 +03:00
sprintf_s_string
This commit is contained in:
@@ -72,12 +72,11 @@ void MdataMgr::basic() {
|
||||
}
|
||||
|
||||
void MdataMgr::Log(const char* fmt, ...) {
|
||||
char buf[0x400];
|
||||
va_list args;
|
||||
va_start(args, fmt);
|
||||
size_t len = vsprintf_s(buf, sizeof(buf), fmt, args);
|
||||
std::string buf = vsprintf_s_string(fmt, args);
|
||||
va_end(args);
|
||||
log.append(fmt, len);
|
||||
log.append(buf);
|
||||
log.append(1, '\n');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user