Mercurial > libavformat.hg
diff nutdec.c @ 2189:da71207a7cf1 libavformat
use new string functions
based on patch by Reimar D?ffinger
| author | mru |
|---|---|
| date | Sat, 23 Jun 2007 23:10:32 +0000 |
| parents | 4452d75a9298 |
| children | 06083249909c |
line wrap: on
line diff
--- a/nutdec.c Sat Jun 23 12:49:36 2007 +0000 +++ b/nutdec.c Sat Jun 23 23:10:32 2007 +0000 @@ -23,6 +23,7 @@ #include "tree.h" #include "nut.h" +#include "avstring.h" #undef NDEBUG #include <assert.h> @@ -404,13 +405,13 @@ 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)); } }
