From 24c92d00919500a725a6d4c4797b48088b56431f Mon Sep 17 00:00:00 2001 From: Jonathan Gray Date: Sat, 9 Apr 2005 01:52:44 +0000 Subject: Remove usage of vsprintf in favour of vsnprintf and make more use of STRINGBUFLEN. Some ports may need a new stub for this, discussed with Chrilith. svn-id: r17463 --- simon/charset.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'simon/charset.cpp') diff --git a/simon/charset.cpp b/simon/charset.cpp index 1fd55f74fa..5996b4ed12 100644 --- a/simon/charset.cpp +++ b/simon/charset.cpp @@ -223,7 +223,7 @@ void SimonEngine::showMessageFormat(const char *s, ...) { va_list va; va_start(va, s); - vsprintf(buf, s, va); + vsnprintf(buf, STRINGBUFLEN, s, va); va_end(va); if (!_fcs_data_1[_fcs_unk_1]) { -- cgit v1.2.3