incorrect parameter can now return an error message

This commit is contained in:
Markus Gans 2016-08-28 22:52:55 +02:00
parent 44cb96e732
commit be96aea0d8
1 changed files with 2 additions and 1 deletions

View File

@ -110,7 +110,8 @@ void FApplication::setExitMessage (std::string message)
quit_now = true;
snprintf ( FTerm::exit_message
, sizeof(FTerm::exit_message)
, message.c_str() );
, "%s"
,message.c_str() );
}
//----------------------------------------------------------------------