summaryrefslogtreecommitdiff
path: root/getgbook.c
diff options
context:
space:
mode:
authorNick White <nick.white@proporta.com>2011-08-18 10:38:13 +0100
committerNick White <nick.white@proporta.com>2011-08-18 10:38:13 +0100
commit7638ce1addb79e4f353f33c1c3ac1be0a11cc7f1 (patch)
tree2c28221018b100d714c721d95851bf3b754d676a /getgbook.c
parent94419299593c70aa9933868d6a795f128c65fe8b (diff)
Get socket stuff working fully, fix bug in cookie sending
Diffstat (limited to 'getgbook.c')
-rw-r--r--getgbook.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/getgbook.c b/getgbook.c
index 5f0a0ae..cd12c86 100644
--- a/getgbook.c
+++ b/getgbook.c
@@ -52,6 +52,7 @@ Page *getpagedetail(char *bookid, char *pg, char *cookie)
*p = *d;
}
strncpy(p, "&q=subject:a", 12);
+ *(p+12) = '\0';
} else
d=c;