1
0
Fork 0

Merge branch 'svn/trunk' r4296

This commit is contained in:
Patryk Obara 2019-11-26 18:36:56 +01:00
commit 301d7c3423
4 changed files with 21 additions and 11 deletions

View file

@ -28,6 +28,7 @@
#include <cstring>
#include "dosbox.h"
#include "cross.h"
#include "debug.h"
#include "support.h"
#include "video.h"
@ -181,9 +182,11 @@ void E_Exit(const char * format,...) {
#endif
va_list msg;
va_start(msg,format);
vsprintf(buf,format,msg);
vsnprintf(buf,sizeof(buf),format,msg);
va_end(msg);
strcat(buf,"\n");
buf[sizeof(buf) - 1] = '\0';
//strcat(buf,"\n"); catcher should handle the end of line..
throw(buf);
}