summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorNick White <git@njw.me.uk>2011-08-22 01:07:32 +0100
committerNick White <git@njw.me.uk>2011-08-22 01:07:32 +0100
commitad06b65edf305ac5fe18efee908084c949d02ff3 (patch)
tree3f4411f743b0856bae6d208e215ba3bc85524f06 /util.c
parent6d6b3e9c5aa621bf19b1f49aeada1949f64e080d (diff)
Little util cleanup
Diffstat (limited to 'util.c')
-rw-r--r--util.c2
1 files changed, 1 insertions, 1 deletions
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;