Mercurial > libavformat.hg
diff avio.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 | 84ed710a9adc |
children | b21c2af60bc9 |
line wrap: on
line diff
--- a/avio.c Sat Jun 23 12:49:36 2007 +0000 +++ b/avio.c Sat Jun 23 23:10:32 2007 +0000 @@ -19,6 +19,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #include "avformat.h" +#include "avstring.h" static int default_interrupt_cb(void); @@ -169,7 +170,7 @@ void url_get_filename(URLContext *h, char *buf, int buf_size) { - pstrcpy(buf, buf_size, h->filename); + av_strlcpy(buf, h->filename, buf_size); }