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 fc5c5c5..8fa00bd 100644
--- a/util.c
+++ b/util.c
@@ -40,7 +40,7 @@ char *get(char *host, char *path) {
char *buf, *c, *p;
FILE *srv;
- fd = dial("books.google.com", "80");
+ fd = dial(host, "80");
srv = fdopen(fd, "r+");
fprintf(srv, "GET %s HTTP/1.0\r\nUser-Agent: getgbook-"VERSION" (not mozilla)\r\nHost: %s\r\n\r\n", path, host);