Mercurial > libavformat.hg
diff img2.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 | 5a9a03da8fba |
children | b21c2af60bc9 |
line wrap: on
line diff
--- a/img2.c Sat Jun 23 12:49:36 2007 +0000 +++ b/img2.c Sat Jun 23 23:10:32 2007 +0000 @@ -20,6 +20,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #include "avformat.h" +#include "avstring.h" typedef struct { int img_first; @@ -182,7 +183,7 @@ return AVERROR(ENOMEM); } - pstrcpy(s->path, sizeof(s->path), s1->filename); + av_strlcpy(s->path, s1->filename, sizeof(s->path)); s->img_number = 0; s->img_count = 0; @@ -307,7 +308,7 @@ VideoData *img = s->priv_data; img->img_number = 1; - pstrcpy(img->path, sizeof(img->path), s->filename); + av_strlcpy(img->path, s->filename, sizeof(img->path)); /* find format */ if (s->oformat->flags & AVFMT_NOFILE)