aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrik <patrik@yes.nu>2009-02-09 23:11:26 +0000
committerCarl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at>2009-02-09 23:11:26 +0000
commit862c1d2f0573c81ed0929b685c55959906b4300c (patch)
tree85e89da284f0cb5fb2f1db93be10aac537d72f9e
parent37a558fe5154be9adaeed23dddf98f224e99cc32 (diff)
downloadffmpeg-862c1d2f0573c81ed0929b685c55959906b4300c.tar.gz
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 Originally committed as revision 17110 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/audioconvert.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/audioconvert.c b/libavcodec/audioconvert.c
index 40a79000fb..2f2ad8c8db 100644
--- a/libavcodec/audioconvert.c
+++ b/libavcodec/audioconvert.c
@@ -128,7 +128,7 @@ void avcodec_get_channel_layout_string(char *buf, int buf_size, int nb_channels,
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;
}