summaryrefslogtreecommitdiff
path: root/getgbook.c
diff options
context:
space:
mode:
Diffstat (limited to 'getgbook.c')
-rw-r--r--getgbook.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/getgbook.c b/getgbook.c
index f43abec..ff10e82 100644
--- a/getgbook.c
+++ b/getgbook.c
@@ -19,7 +19,7 @@ typedef struct {
int num;
char url[URLMAX];
char name[STRMAX];
- char cookie[COOKIEMAX];
+ char *cookie;
} Page;
Page **pages;
@@ -102,7 +102,7 @@ int getpageurls(char *pagecode, char *cookie) {
*p = *d;
}
strncpy(p, "&q=subject:a", 13);
- strncpy(pages[j]->cookie, cookie, COOKIEMAX);
+ pages[j]->cookie = cookie;
break;
}
}