summaryrefslogtreecommitdiff
path: root/libavformat/http.c
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2014-07-22 16:37:09 +0200
committerLuca Barbato <lu_zero@gentoo.org>2014-07-22 16:38:26 +0200
commit7bdd2ff6825951f7a6a6008303acfce7c2a63532 (patch)
tree7758f4919efbbb6c5be7b8cf12417646e5ab7360 /libavformat/http.c
parent78670fbf07bd03479073d4218440de4914304680 (diff)
http: Use a constant for the supported header size
Diffstat (limited to 'libavformat/http.c')
-rw-r--r--libavformat/http.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/http.c b/libavformat/http.c
index 6c390e8a7c..d7f6029627 100644
--- a/libavformat/http.c
+++ b/libavformat/http.c
@@ -529,7 +529,7 @@ static int http_connect(URLContext *h, const char *path, const char *local_path,
{
HTTPContext *s = h->priv_data;
int post, err;
- char headers[1024] = "";
+ char headers[HTTP_HEADERS_SIZE] = "";
char *authstr = NULL, *proxyauthstr = NULL;
int64_t off = s->off;
int len = 0;