diff options
author | Nick White <git@njw.me.uk> | 2012-07-13 18:20:13 +0100 |
---|---|---|
committer | Nick White <git@njw.me.uk> | 2012-07-13 18:20:13 +0100 |
commit | 51c41296bca9e06cfa2d53ce3a0837e1a8697b1c (patch) | |
tree | a77825784861c85e8509f25cc9d6de9d619b26f6 /util.h | |
parent | 8f03147275f2522fa9d5dd16ed3e875dfffe515e (diff) |
Ensure text downloaded is null terminated
Diffstat (limited to 'util.h')
-rw-r--r-- | util.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,7 +1,7 @@ /* See COPYING file for copyright and license details. */ #define COOKIEMAX 1024 int dial(char *host, char *port); -int get(char *host, char *path, char *sendcookie, char *savecookie, char **body); -int post(char *host, char *path, char *sendcookie, char *savecookie, char *data, char **body); -int gettofile(char *host, char *url, char *sendcookie, char *savecookie, char *savepath); +int get(char *host, char *path, char *sendcookie, char *savecookie, char **body, int istext); +int post(char *host, char *path, char *sendcookie, char *savecookie, char *data, char **body, int istext); +int gettofile(char *host, char *url, char *sendcookie, char *savecookie, char *savepath, int istext); int renameifjpg(char *path); |