Revision 1a5e4fd8 libavformat/mp3enc.c

View differences:

libavformat/mp3enc.c
24 24
#include "id3v1.h"
25 25
#include "id3v2.h"
26 26
#include "rawenc.h"
27
#include "libavutil/avstring.h"
27 28
#include "libavutil/intreadwrite.h"
28 29
#include "libavutil/opt.h"
29 30

  
......
32 33
{
33 34
    AVMetadataTag *tag;
34 35
    if ((tag = av_metadata_get(s->metadata, key, NULL, 0)))
35
        strncpy(buf, tag->value, buf_size);
36
        av_strlcpy(buf, tag->value, buf_size);
36 37
    return !!tag;
37 38
}
38 39

  

Also available in: Unified diff