From 75e61b0e88ddb17fa57f8e3bc10d27cb1282a815 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A5ns=20Rullg=C3=A5rd?= Date: Sat, 23 Jun 2007 23:10:32 +0000 Subject: =?UTF-8?q?use=20new=20string=20functions=20based=20on=20patch=20b?= =?UTF-8?q?y=20Reimar=20D=C3=B6ffinger?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Originally committed as revision 9401 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/http.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libavformat/http.c') diff --git a/libavformat/http.c b/libavformat/http.c index 6a509dc6aa..6acf094443 100644 --- a/libavformat/http.c +++ b/libavformat/http.c @@ -23,6 +23,7 @@ #include "network.h" #include "base64.h" +#include "avstring.h" /* XXX: POST protocol is not completely implemented because ffmpeg uses only a subset of it. */ @@ -72,7 +73,7 @@ static int http_open_cnx(URLContext *h) if (port > 0) { snprintf(hoststr, sizeof(hoststr), "%s:%d", hostname, port); } else { - pstrcpy(hoststr, sizeof(hoststr), hostname); + av_strlcpy(hoststr, hostname, sizeof(hoststr)); } if (use_proxy) { -- cgit v1.2.3