fix: remove _s poison

This commit is contained in:
2025-02-06 12:55:05 +01:00
parent 547948a324
commit 5a4f180986
13 changed files with 77 additions and 98 deletions

View File

@@ -348,15 +348,14 @@ namespace demonware
return;
}
char buffer[2048];
char buffer[2048]{};
va_list ap;
va_start(ap, msg);
vsnprintf_s(buffer, _TRUNCATE, msg, ap);
printf("%s: %s\n", function, buffer);
vsnprintf(buffer, sizeof(buffer), msg, ap);
va_end(ap);
printf("%s: %s\n", function, buffer);
}
void startup_dw()