diff options
author | Nick White <git@njw.me.uk> | 2011-08-22 01:07:32 +0100 |
---|---|---|
committer | Nick White <git@njw.me.uk> | 2011-08-22 01:07:32 +0100 |
commit | ad06b65edf305ac5fe18efee908084c949d02ff3 (patch) | |
tree | 3f4411f743b0856bae6d208e215ba3bc85524f06 | |
parent | 6d6b3e9c5aa621bf19b1f49aeada1949f64e080d (diff) |
Little util cleanup
-rw-r--r-- | util.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |