summaryrefslogtreecommitdiff
path: root/getgbook.c
diff options
context:
space:
mode:
Diffstat (limited to 'getgbook.c')
-rw-r--r--getgbook.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/getgbook.c b/getgbook.c
index 0ffda13..b4a23af 100644
--- a/getgbook.c
+++ b/getgbook.c
@@ -38,7 +38,7 @@ Page *getpagedetail(char *bookid, char *pg, char *cookie)
if(!(c = strstr(buf,m)))
return NULL;
- page = malloc(sizeof(Page));
+ page = malloc(sizeof(*page));
strncpy(page->name, pg, STRMAX);
page->url[0] = '\0';
page->num = -1;