From ad06b65edf305ac5fe18efee908084c949d02ff3 Mon Sep 17 00:00:00 2001 From: Nick White Date: Mon, 22 Aug 2011 01:07:32 +0100 Subject: Little util cleanup --- util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util.c b/util.c index 312bc2f..759e25b 100644 --- a/util.c +++ b/util.c @@ -64,7 +64,7 @@ int get(char *host, char *path, char *sendcookie, char *savecookie, char **buf) snprintf(c, COOKIEMAX, "\r\nCookie: %s", sendcookie); snprintf(h, HDRMAX, "GET %s HTTP/1.0\r\nUser-Agent: getxbook-"VERSION \ " (not mozilla)\r\nHost: %s%s\r\n\r\n", path, host, c); - if(!send(fd, h, HDRMAX, 0)) return 0; + if(!send(fd, h, strlen(h), 0)) return 0; *buf = NULL; l = 0; -- cgit v1.2.3