diff options
author | Aurelien Jacobs <aurel@gnuage.org> | 2008-08-05 00:39:47 +0000 |
---|---|---|
committer | Aurelien Jacobs <aurel@gnuage.org> | 2008-08-05 00:39:47 +0000 |
commit | 5f8e022701ba2f0f4ef27b25845bec69928c4061 (patch) | |
tree | b22871b98917a88537e6530e5acef93448eba79b /libavformat/matroskadec.c | |
parent | ba7f712c2140d907d543c665fbac38b626471cff (diff) | |
download | ffmpeg-5f8e022701ba2f0f4ef27b25845bec69928c4061.tar.gz |
matroskadec: use more robust av_strlcpy() instead of strcpy()
Originally committed as revision 14548 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/matroskadec.c')
-rw-r--r-- | libavformat/matroskadec.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c index ba7580ac5e..34501df59b 100644 --- a/libavformat/matroskadec.c +++ b/libavformat/matroskadec.c @@ -35,6 +35,7 @@ #include "matroska.h" #include "libavcodec/mpeg4audio.h" #include "libavutil/intfloat_readwrite.h" +#include "libavutil/avstring.h" #include "libavutil/lzo.h" #ifdef CONFIG_ZLIB #include <zlib.h> @@ -2651,7 +2652,7 @@ matroska_read_header (AVFormatContext *s, st->codec->codec_id = codec_id; st->start_time = 0; if (strcmp(track->language, "und")) - strcpy(st->language, track->language); + av_strlcpy(st->language, track->language, 4); if (track->flags & MATROSKA_TRACK_DEFAULT) st->disposition |= AV_DISPOSITION_DEFAULT; |