diff options
author | Nick White <git@njw.me.uk> | 2011-09-12 23:12:44 +0100 |
---|---|---|
committer | Nick White <git@njw.me.uk> | 2011-09-12 23:12:44 +0100 |
commit | 56d06fcfce528f73f0a6310e21bc5fdce0dfa5a7 (patch) | |
tree | b2c9015ef2e7764a328028d285a28c6efdc122f6 /getgbook.c | |
parent | b8e6013ca1f59dd5f50c7e0ae07161f5c5fee25c (diff) |
Have shared pointers be pointed to rather than copied
Diffstat (limited to 'getgbook.c')
-rw-r--r-- | getgbook.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } } |