ref: 1e63788c616bf1a07d1a36f7011da469301abfe6
parent: aa18cccef585e56f9b20f429d1cfd53c7b6799e7
author: Clownacy <Clownacy@users.noreply.github.com>
date: Sat Apr 25 20:55:33 EDT 2020
Use safe printf functions for Wii U code
--- a/src/Backends/WiiU/Misc.cpp
+++ b/src/Backends/WiiU/Misc.cpp
@@ -145,7 +145,7 @@
va_list argument_list;
va_start(argument_list, format);
- vsprintf(message_buffer, format, argument_list);
+ vsnprintf(message_buffer, sizeof(message_buffer), format, argument_list);
va_end(argument_list);
WHBLogPrint("ERROR:");
@@ -158,7 +158,7 @@
va_list argument_list;
va_start(argument_list, format);
- vsprintf(message_buffer, format, argument_list);
+ vsnprintf(message_buffer, sizeof(message_buffer), format, argument_list);
va_end(argument_list);
WHBLogPrint("INFO:");