From 17a8a234ffabf7357d79e0e794c7ebb101ae2659 Mon Sep 17 00:00:00 2001 From: al3x Date: Mon, 11 Jun 2001 12:47:48 +0000 Subject: some possible buffer overflow places fixed git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1097 b3059339-0415-0410-9bf9-f77b7e298cf2 --- loader/dshow/DS_Filter.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'loader/dshow/DS_Filter.c') diff --git a/loader/dshow/DS_Filter.c b/loader/dshow/DS_Filter.c index 966b2cde87..d3a530ddb4 100644 --- a/loader/dshow/DS_Filter.c +++ b/loader/dshow/DS_Filter.c @@ -79,14 +79,14 @@ void DS_Filter::Create(char* dllname, const GUID* id, AM_MEDIA_TYPE* in_fmt, AM if (!m_iHandle) { char e[1024]; - sprintf(e, "Could not open DirectShow DLL: %s", dllname); + snprintf(e, 1024, "Could not open DirectShow DLL: %s", dllname); throw FATAL(e); } GETCLASS func=(GETCLASS)GetProcAddress(m_iHandle, "DllGetClassObject"); if (!func) { char e[1024]; - sprintf(e, "Illegal or corrupt DirectShow DLL: %s", dllname); + snprintf(e, 1024, "Illegal or corrupt DirectShow DLL: %s", dllname); throw FATAL(e); } -- cgit v1.2.3