diff options
author | Alex Converse <aconverse@google.com> | 2011-05-03 11:19:31 -0700 |
---|---|---|
committer | Alex Converse <alex.converse@gmail.com> | 2011-05-03 21:20:13 -0700 |
commit | 1a5e4fd8c5b99478b4e08a69261930bb12aa948b (patch) | |
tree | 305d316548f3f399606e2659ee0fec7e2a13ae59 /libavformat/mp3enc.c | |
parent | aab6374bbe2b6ce4ca82141be6a5b7b8875bf051 (diff) | |
download | ffmpeg-1a5e4fd8c5b99478b4e08a69261930bb12aa948b.tar.gz |
Replace strncpy() with av_strlcpy().
Diffstat (limited to 'libavformat/mp3enc.c')
-rw-r--r-- | libavformat/mp3enc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/mp3enc.c b/libavformat/mp3enc.c index d46e67b70c..10abe0994c 100644 --- a/libavformat/mp3enc.c +++ b/libavformat/mp3enc.c @@ -24,6 +24,7 @@ #include "id3v1.h" #include "id3v2.h" #include "rawenc.h" +#include "libavutil/avstring.h" #include "libavutil/intreadwrite.h" #include "libavutil/opt.h" @@ -32,7 +33,7 @@ static int id3v1_set_string(AVFormatContext *s, const char *key, { AVMetadataTag *tag; if ((tag = av_metadata_get(s->metadata, key, NULL, 0))) - strncpy(buf, tag->value, buf_size); + av_strlcpy(buf, tag->value, buf_size); return !!tag; } |