summaryrefslogtreecommitdiff
path: root/libavformat/cafdec.c
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2011-11-03 20:19:43 +0100
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2011-11-03 20:22:10 +0100
commit4eb86d348ff5bfa140e06a6d8017a0c762015a67 (patch)
tree95dd306418b5a88f4a40fdb0b1c1ab1936497846 /libavformat/cafdec.c
parent96949dafcca87f65902bd77a0bc56007d9cead70 (diff)
Do not use strcpy for "strings" starting with \0.
Diffstat (limited to 'libavformat/cafdec.c')
-rw-r--r--libavformat/cafdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/cafdec.c b/libavformat/cafdec.c
index 2b22fcc88c..f4df75c7be 100644
--- a/libavformat/cafdec.c
+++ b/libavformat/cafdec.c
@@ -125,7 +125,7 @@ static int read_kuki_chunk(AVFormatContext *s, int64_t size)
st->codec->extradata = av_mallocz(ALAC_HEADER + FF_INPUT_BUFFER_PADDING_SIZE);
if (!st->codec->extradata)
return AVERROR(ENOMEM);
- strcpy(st->codec->extradata, "\0\0\0\24alac");
+ memcpy(st->codec->extradata, "\0\0\0\24alac", 8);
avio_read(pb, st->codec->extradata + ALAC_HEADER - ALAC_NEW_KUKI, ALAC_NEW_KUKI);
st->codec->extradata_size = ALAC_HEADER;
} else {