summaryrefslogtreecommitdiff
path: root/lib/http.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2018-05-11 23:40:58 +0200
committerDaniel Stenberg <daniel@haxx.se>2018-05-14 10:59:11 +0200
commiteaf3200f7f08cd7ee5afede3b5576cdac0266665 (patch)
treee961f65ad27632ddb6e3fd2e38cdaacef808e047 /lib/http.c
parent07b9826541ec429433495d237301d59a5d8bfd22 (diff)
downloadcurl-bagder/unify-sizeof.tar.gz
checksrc: make sure sizeof() is used *with* parenthesesbagder/unify-sizeof
... and unify the source code to adhere.
Diffstat (limited to 'lib/http.c')
-rw-r--r--lib/http.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/http.c b/lib/http.c
index ff1d6813a..d4854013d 100644
--- a/lib/http.c
+++ b/lib/http.c
@@ -1406,7 +1406,7 @@ static CURLcode add_haproxy_protocol_header(struct connectdata *conn)
}
snprintf(proxy_header,
- sizeof proxy_header,
+ sizeof(proxy_header),
"PROXY %s %s %s %li %li\r\n",
tcp_version,
conn->data->info.conn_local_ip,