From 9384567b85f20be7be5745a49a8d56d062861029 Mon Sep 17 00:00:00 2001 From: diego Date: Wed, 11 Feb 2009 00:07:32 +0000 Subject: [PATCH] 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 git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17141 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b --- ffmpeg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ffmpeg.c b/ffmpeg.c index 3817050c9..3829c60eb 100644 --- a/ffmpeg.c +++ b/ffmpeg.c @@ -3717,7 +3717,7 @@ static int opt_preset(const char *opt, const char *arg) } 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"); } -- 2.39.2