From 5c67237f618de1b8f9b780a0f9ea6bb2ef84d20c Mon Sep 17 00:00:00 2001 From: Nick White Date: Sat, 16 Jul 2011 12:57:49 +0100 Subject: Fix host usage in get() --- util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3