Merge branch 'svn/trunk' r4296
This commit is contained in:
commit
301d7c3423
4 changed files with 21 additions and 11 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue