Refactor/Improve String and Path Handling

This commit is contained in:
LRFLEW committed 2016-10-09 15:29:58 -05:00
1 parent 211a0d7863
commit e5ff7412e4
94 files changed
+1038 -989

No files matched your search

+2 -1
View File
@@ -75,7 +75,8 @@ namespace Guard
if (message != nullptr)
{
strcat(buffer, "\r\n");
vsprintf((char *)strchr(buffer, 0), message, args);
char *bufend = (char *)strchr(buffer, 0);
vsnprintf(bufend, sizeof(buffer) - (bufend - buffer), message, args);
}
int result = MessageBox(nullptr, buffer, OPENRCT2_NAME, MB_ABORTRETRYIGNORE | MB_ICONEXCLAMATION);
if (result == IDABORT)