From 4ae5f5a377a21628edfb9e7424235586505ea835 Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Fri, 1 Feb 2013 14:33:40 -0500 Subject: [PATCH] Don't pass plFileName to varargs --- Sources/Plasma/PubUtilLib/plAudio/plWin32StreamingSound.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Plasma/PubUtilLib/plAudio/plWin32StreamingSound.cpp b/Sources/Plasma/PubUtilLib/plAudio/plWin32StreamingSound.cpp index 8cb3b69e..5ac935b0 100644 --- a/Sources/Plasma/PubUtilLib/plAudio/plWin32StreamingSound.cpp +++ b/Sources/Plasma/PubUtilLib/plAudio/plWin32StreamingSound.cpp @@ -347,7 +347,7 @@ bool plWin32StreamingSound::LoadSound( bool is3D ) // Debug info char str[ 256 ]; - sprintf( str, " Streaming %s.", fSrcFilename); + snprintf( str, arrsize(str), " Streaming %s.", fSrcFilename.AsString().c_str() ); IPrintDbgMessage( str ); plStatusLog::AddLineS( "audioTimes.log", 0xffffffff, "Streaming %4.2f secs of %s",