[FFmpeg-cvslog] r17141 - trunk/ffmpeg.c

diego subversion
Wed Feb 11 01:07:33 CET 2009


Author: diego
Date: Wed Feb 11 01:07:32 2009
New Revision: 17141

Log:
Use av_strlcpy instead of snprintf without formatting.
Prevents warnings about "format not a string literal and no format arguments".
patch by Patrik Kullman, patrik yes nu

Modified:
   trunk/ffmpeg.c

Modified: trunk/ffmpeg.c
==============================================================================
--- trunk/ffmpeg.c	Wed Feb 11 00:25:23 2009	(r17140)
+++ trunk/ffmpeg.c	Wed Feb 11 01:07:32 2009	(r17141)
@@ -3717,7 +3717,7 @@ static int opt_preset(const char *opt, c
     }
     if(!f && ((arg[0]=='.' && arg[1]=='/') || arg[0]=='/' ||
               is_dos_path(arg))){
-        snprintf(filename, sizeof(filename), arg);
+        av_strlcpy(filename, arg, sizeof(filename));
         f= fopen(filename, "r");
     }
 




More information about the ffmpeg-cvslog mailing list