aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/http.c
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2007-06-23 23:10:32 +0000
committerMåns Rullgård <mans@mansr.com>2007-06-23 23:10:32 +0000
commit75e61b0e88ddb17fa57f8e3bc10d27cb1282a815 (patch)
tree53eb957add38a1f9d9617d8addfc7a070980b4e3 /libavformat/http.c
parentfc78ce803bd4fb2431a843224b572d543580d275 (diff)
downloadffmpeg-75e61b0e88ddb17fa57f8e3bc10d27cb1282a815.tar.gz
use new string functions
based on patch by Reimar Döffinger Originally committed as revision 9401 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/http.c')
-rw-r--r--libavformat/http.c3
1 files changed, 2 insertions, 1 deletions
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) {