Mercurial > libavformat.hg
diff rtpproto.c @ 2193:5ce5fad0dfac libavformat
replace the uses of old string functions that Reimar missed
author | mru |
---|---|
date | Sun, 24 Jun 2007 11:27:12 +0000 |
parents | c5a3a1f884a4 |
children | d16d62d4528f |
line wrap: on
line diff
--- a/rtpproto.c Sun Jun 24 07:45:19 2007 +0000 +++ b/rtpproto.c Sun Jun 24 11:27:12 2007 +0000 @@ -19,6 +19,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #include "avformat.h" +#include "avstring.h" #include <unistd.h> #include <stdarg.h> @@ -72,11 +73,11 @@ va_start(ap, fmt); if (strchr(buf, '?')) - pstrcat(buf, buf_size, "&"); + av_strlcat(buf, "&", buf_size); else - pstrcat(buf, buf_size, "?"); + av_strlcat(buf, "?", buf_size); vsnprintf(buf1, sizeof(buf1), fmt, ap); - pstrcat(buf, buf_size, buf1); + av_strlcat(buf, buf1, buf_size); va_end(ap); }