diff --git a/Sources/Plasma/PubUtilLib/plAudio/plWin32StreamingSound.cpp b/Sources/Plasma/PubUtilLib/plAudio/plWin32StreamingSound.cpp index 5ac935b0..dac85d7a 100644 --- a/Sources/Plasma/PubUtilLib/plAudio/plWin32StreamingSound.cpp +++ b/Sources/Plasma/PubUtilLib/plAudio/plWin32StreamingSound.cpp @@ -346,9 +346,8 @@ bool plWin32StreamingSound::LoadSound( bool is3D ) IRefreshEAXSettings( true ); // Debug info - char str[ 256 ]; - snprintf( str, arrsize(str), " Streaming %s.", fSrcFilename.AsString().c_str() ); - IPrintDbgMessage( str ); + plString dbg = plString::Format(" Streaming %s.", fSrcFilename.AsString().c_str()); + IPrintDbgMessage(dbg.c_str()); plStatusLog::AddLineS( "audioTimes.log", 0xffffffff, "Streaming %4.2f secs of %s", fDataStream->GetLengthInSecs(), GetKey()->GetUoid().GetObjectName().c_str() ); diff --git a/Sources/Plasma/PubUtilLib/plNetClient/plNetClientMgr.cpp b/Sources/Plasma/PubUtilLib/plNetClient/plNetClientMgr.cpp index 16c60dce..a8315d5a 100644 --- a/Sources/Plasma/PubUtilLib/plNetClient/plNetClientMgr.cpp +++ b/Sources/Plasma/PubUtilLib/plNetClient/plNetClientMgr.cpp @@ -1235,9 +1235,8 @@ void plNetClientMgr::IDisableNet () { if (!GetFlagsBit(plNetClientApp::kPlayingGame)) { // KI may not be loaded - char title[256]; - snprintf(title, arrsize(title), "%s Error", plProduct::CoreName().c_str()); - hsMessageBox(fDisableMsg->str, title, hsMessageBoxNormal, hsMessageBoxIconError ); + plString title = plString::Format("%s Error", plProduct::CoreName().c_str()); + hsMessageBox(fDisableMsg->str, title.c_str(), hsMessageBoxNormal, hsMessageBoxIconError ); plClientMsg *quitMsg = new plClientMsg(plClientMsg::kQuit); quitMsg->Send(hsgResMgr::ResMgr()->FindKey(kClient_KEY)); }