From d67cc6032bb84b30cb5075549de03d8e40e518c3 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Sun, 20 Nov 2011 03:43:52 +0000 Subject: [PATCH] Fix portaudio player compilation Originally committed to SVN as r5897. --- aegisub/src/audio_player_portaudio.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aegisub/src/audio_player_portaudio.cpp b/aegisub/src/audio_player_portaudio.cpp index dc45067d7..94ebb4b37 100644 --- a/aegisub/src/audio_player_portaudio.cpp +++ b/aegisub/src/audio_player_portaudio.cpp @@ -63,7 +63,7 @@ PortAudioPlayer::PortAudioPlayer() { if (err != paNoError) { static char errormsg[2048]; - sprintf(errormsg, 2048, "Failed opening PortAudio: %s", Pa_GetErrorText(err)); + snprintf(errormsg, 2048, "Failed opening PortAudio: %s", Pa_GetErrorText(err)); throw errormsg; } pa_refcount++;