diff mpegaudiodec.c @ 2423:87b7fbed8609 libavcodec

dissallow sprintf
author michael
date Wed, 12 Jan 2005 00:59:42 +0000
parents 582e635cfa08
children d9cf90e66883
line wrap: on
line diff
--- a/mpegaudiodec.c	Wed Jan 12 00:16:25 2005 +0000
+++ b/mpegaudiodec.c	Wed Jan 12 00:59:42 2005 +0000
@@ -2130,7 +2130,7 @@
     
     f = files[fnum];
     if (!f) {
-        sprintf(buf, "/tmp/out%d.%s.pcm", 
+        snprintf(buf, sizeof(buf), "/tmp/out%d.%s.pcm", 
                 fnum, 
 #ifdef USE_HIGHPRECISION
                 "hp"