summaryrefslogtreecommitdiff
path: root/ffplay.c
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2007-06-24 11:27:12 +0000
committerMåns Rullgård <mans@mansr.com>2007-06-24 11:27:12 +0000
commitf7d78f3654f8181fb889000dfc2b9a91ca85e418 (patch)
tree2dd03806da8128c531f95b35a28cfb245e405ff0 /ffplay.c
parent3565e10b44cc978b75a5179191bc4a3c946a2e4a (diff)
replace the uses of old string functions that Reimar missed
Originally committed as revision 9406 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffplay.c')
-rw-r--r--ffplay.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ffplay.c b/ffplay.c
index 574ef26d58..bc53a8c1fb 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -21,6 +21,7 @@
#include "avformat.h"
#include "swscale.h"
+#include "avstring.h"
#include "version.h"
#include "cmdutils.h"
@@ -2109,7 +2110,7 @@ static VideoState *stream_open(const char *filename, AVInputFormat *iformat)
is = av_mallocz(sizeof(VideoState));
if (!is)
return NULL;
- pstrcpy(is->filename, sizeof(is->filename), filename);
+ av_strlcpy(is->filename, filename, sizeof(is->filename));
is->iformat = iformat;
is->ytop = 0;
is->xleft = 0;