diff options
author | Måns Rullgård <mans@mansr.com> | 2007-06-23 23:10:32 +0000 |
---|---|---|
committer | Måns Rullgård <mans@mansr.com> | 2007-06-23 23:10:32 +0000 |
commit | 75e61b0e88ddb17fa57f8e3bc10d27cb1282a815 (patch) | |
tree | 53eb957add38a1f9d9617d8addfc7a070980b4e3 /libavformat/nutdec.c | |
parent | fc78ce803bd4fb2431a843224b572d543580d275 (diff) | |
download | ffmpeg-75e61b0e88ddb17fa57f8e3bc10d27cb1282a815.tar.gz |
use new string functions
based on patch by Reimar Döffinger
Originally committed as revision 9401 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/nutdec.c')
-rw-r--r-- | libavformat/nutdec.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/libavformat/nutdec.c b/libavformat/nutdec.c index 0f5c85df60..fab672043f 100644 --- a/libavformat/nutdec.c +++ b/libavformat/nutdec.c @@ -23,6 +23,7 @@ #include "tree.h" #include "nut.h" +#include "avstring.h" #undef NDEBUG #include <assert.h> @@ -404,13 +405,13 @@ static int decode_info_header(NUTContext *nut){ if(chapter_id==0 && !strcmp(type, "UTF-8")){ if (!strcmp(name, "Author")) - pstrcpy(s->author , sizeof(s->author) , str_value); + av_strlcpy(s->author , str_value, sizeof(s->author)); else if(!strcmp(name, "Title")) - pstrcpy(s->title , sizeof(s->title) , str_value); + av_strlcpy(s->title , str_value, sizeof(s->title)); else if(!strcmp(name, "Copyright")) - pstrcpy(s->copyright, sizeof(s->copyright), str_value); + av_strlcpy(s->copyright, str_value, sizeof(s->copyright)); else if(!strcmp(name, "Description")) - pstrcpy(s->comment , sizeof(s->comment) , str_value); + av_strlcpy(s->comment , str_value, sizeof(s->comment)); } } |