aboutsummaryrefslogtreecommitdiff
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorPatrik Kullman2009-02-11 00:07:32 +0000
committerDiego Biurrun2009-02-11 00:07:32 +0000
commit6d0c77ba40a93ab0ba861f8e069a32b7796bff37 (patch)
tree40aef2014d4fe93c2518a763adea1feabe6e0a98 /ffmpeg.c
parent6d3cf67c2a287ffeea65e3f4b1ed0981bdfd293a (diff)
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 Originally committed as revision 17141 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 3817050c9b..3829c60ebe 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");
}