# HG changeset patch # User cehoyos # Date 1234221086 0 # Node ID 7c47da8e2cf8638028e08b1ddf2ed74004a5c296 # Parent e91ea98d868af85dbfb0e30b17b6223cbf25eb98 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 diff -r e91ea98d868a -r 7c47da8e2cf8 audioconvert.c --- a/audioconvert.c Mon Feb 09 23:04:16 2009 +0000 +++ b/audioconvert.c Mon Feb 09 23:11:26 2009 +0000 @@ -128,7 +128,7 @@ 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; }