diff --git a/ffmpeg.c b/ffmpeg.c index 3817050c9b8aa91bc77f6f9dcdde08b138dc33a2..3829c60ebeb3e118b18edb77cf30bd093e89fb45 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"); }