Fix bug #519
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4296
This commit is contained in:
parent
f1608a2509
commit
1521b7ad7d
3 changed files with 17 additions and 9 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue