summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
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;