diff rmdec.c @ 2189:da71207a7cf1 libavformat

use new string functions based on patch by Reimar Dffinger
author mru
date Sat, 23 Jun 2007 23:10:32 +0000
parents f42ab3fae0ec
children db097a051c65
line wrap: on
line diff
--- a/rmdec.c	Sat Jun 23 12:49:36 2007 +0000
+++ b/rmdec.c	Sat Jun 23 23:10:32 2007 +0000
@@ -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 @@
             }
         } 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);