Skip to content

Commit

Permalink
fix: use safe_vsnprintf, not the MSVC specific version.
Browse files Browse the repository at this point in the history
  • Loading branch information
kuroneko committed Aug 4, 2020
1 parent 2ab8a7e commit c499e27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/portable/abort.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ SYS_abort(const char *format, ...) {
std::va_list va;

va_start(va, format);
vsprintf_s(messageOut, sizeof(messageOut), format, va);
safe_vsnprintf(messageOut, sizeof(messageOut), format, va);
va_end(va);

if (0 != SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR, "Strange Adventures in Infinite Space!", messageOut, nullptr)) {
Expand Down

0 comments on commit c499e27

Please sign in to comment.