Commit 9384567b authored by diego's avatar diego

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
parent 1efe0ff3
...@@ -3717,7 +3717,7 @@ static int opt_preset(const char *opt, const char *arg) ...@@ -3717,7 +3717,7 @@ static int opt_preset(const char *opt, const char *arg)
} }
if(!f && ((arg[0]=='.' && arg[1]=='/') || arg[0]=='/' || if(!f && ((arg[0]=='.' && arg[1]=='/') || arg[0]=='/' ||
is_dos_path(arg))){ is_dos_path(arg))){
snprintf(filename, sizeof(filename), arg); av_strlcpy(filename, arg, sizeof(filename));
f= fopen(filename, "r"); f= fopen(filename, "r");
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment