summaryrefslogtreecommitdiff
path: root/util.h
diff options
context:
space:
mode:
authorNick White <git@njw.me.uk>2012-07-13 18:20:13 +0100
committerNick White <git@njw.me.uk>2012-07-13 18:20:13 +0100
commit51c41296bca9e06cfa2d53ce3a0837e1a8697b1c (patch)
treea77825784861c85e8509f25cc9d6de9d619b26f6 /util.h
parent8f03147275f2522fa9d5dd16ed3e875dfffe515e (diff)
Ensure text downloaded is null terminated
Diffstat (limited to 'util.h')
-rw-r--r--util.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/util.h b/util.h
index 35bbd74..6959ddc 100644
--- a/util.h
+++ b/util.h
@@ -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);