1
0
Fork 0
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4296
This commit is contained in:
Peter Veenstra 2019-11-26 16:52:04 +00:00
parent f1608a2509
commit 1521b7ad7d
3 changed files with 17 additions and 9 deletions

View file

@ -29,6 +29,7 @@
#include <string>
#include "dosbox.h"
#include "cross.h"
#include "debug.h"
#include "support.h"
#include "video.h"
@ -182,9 +183,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);
}