projects
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6d3cf67
)
Use av_strlcpy instead of snprintf without formatting.
author
Patrik Kullman
<patrik@yes.nu>
Wed, 11 Feb 2009 00:07:32 +0000
(
00:07
+0000)
committer
Diego Biurrun
<diego@biurrun.de>
Wed, 11 Feb 2009 00:07:32 +0000
(
00:07
+0000)
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
ffmpeg.c
patch
|
blob
|
blame
|
history
diff --git
a/ffmpeg.c
b/ffmpeg.c
index
3817050
..
3829c60
100644
(file)
--- 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");
}