aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/movenc.c
diff options
context:
space:
mode:
authorAlex Converse <aconverse@google.com>2011-05-03 11:19:31 -0700
committerAlex Converse <alex.converse@gmail.com>2011-05-03 21:20:13 -0700
commit1a5e4fd8c5b99478b4e08a69261930bb12aa948b (patch)
tree305d316548f3f399606e2659ee0fec7e2a13ae59 /libavformat/movenc.c
parentaab6374bbe2b6ce4ca82141be6a5b7b8875bf051 (diff)
downloadffmpeg-1a5e4fd8c5b99478b4e08a69261930bb12aa948b.tar.gz
Replace strncpy() with av_strlcpy().
Diffstat (limited to 'libavformat/movenc.c')
-rw-r--r--libavformat/movenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index 0458844fc3..0327bdf797 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -827,7 +827,7 @@ static int mov_write_video_tag(AVIOContext *pb, MOVTrack *track)
memset(compressor_name,0,32);
/* FIXME not sure, ISO 14496-1 draft where it shall be set to 0 */
if (track->mode == MODE_MOV && track->enc->codec && track->enc->codec->name)
- strncpy(compressor_name,track->enc->codec->name,31);
+ av_strlcpy(compressor_name,track->enc->codec->name,32);
avio_w8(pb, strlen(compressor_name));
avio_write(pb, compressor_name, 31);