summaryrefslogtreecommitdiff
path: root/libavformat/rmdec.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/rmdec.c')
-rw-r--r--libavformat/rmdec.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libavformat/rmdec.c b/libavformat/rmdec.c
index 8ac86d7727..7ce21e9af4 100644
--- a/libavformat/rmdec.c
+++ b/libavformat/rmdec.c
@@ -20,7 +20,7 @@
*/
#include "avformat.h"
#include "rm.h"
-
+#include "avstring.h"
static void get_str(ByteIOContext *pb, char *buf, int buf_size)
{
@@ -175,8 +175,7 @@ static int rm_read_audio_stream_info(AVFormatContext *s, AVStream *st,
}
} else {
st->codec->codec_id = CODEC_ID_NONE;
- pstrcpy(st->codec->codec_name, sizeof(st->codec->codec_name),
- buf);
+ av_strlcpy(st->codec->codec_name, buf, sizeof(st->codec->codec_name));
}
if (read_all) {
get_byte(pb);