[FFmpeg-cvslog] r17110 - trunk/libavcodec/audioconvert.c

cehoyos subversion
Tue Feb 10 00:11:26 CET 2009


Author: cehoyos
Date: Tue Feb 10 00:11:26 2009
New Revision: 17110

Log:
Replace snprintf() with av_strlcpy().
Fixes the following warning on some systems:
audioconvert.c:131: warning: format not a string literal and no format
arguments

Patch by Patrik patrik A yes D nu

Modified:
   trunk/libavcodec/audioconvert.c

Modified: trunk/libavcodec/audioconvert.c
==============================================================================
--- trunk/libavcodec/audioconvert.c	Tue Feb 10 00:04:16 2009	(r17109)
+++ trunk/libavcodec/audioconvert.c	Tue Feb 10 00:11:26 2009	(r17110)
@@ -128,7 +128,7 @@ void avcodec_get_channel_layout_string(c
     for (i=0; channel_layout_map[i].name; i++)
         if (nb_channels    == channel_layout_map[i].nb_channels &&
             channel_layout == channel_layout_map[i].layout) {
-            snprintf(buf, buf_size, channel_layout_map[i].name);
+            av_strlcpy(buf, channel_layout_map[i].name, buf_size);
             return;
         }
 




More information about the ffmpeg-cvslog mailing list