summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorNick White <git@njw.me.uk>2011-10-04 18:21:53 +0100
committerNick White <git@njw.me.uk>2011-10-04 18:21:53 +0100
commit9d68e29dae73cb08534a34ddd54d55a23be16e3f (patch)
treebbcf293bddc38473a837fbc8dac2d5a820a8ecc5 /util.c
parent63a66e5e1d8a5caebc15139cbaefd082aca8a8ee (diff)
Use appropriate cast for strlen
Diffstat (limited to 'util.c')
-rw-r--r--util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util.c b/util.c
index e8badae..0405640 100644
--- a/util.c
+++ b/util.c
@@ -134,7 +134,7 @@ int post(char *host, char *path, char *data, char **buf) {
" (not mozilla)\r\nContent-Length: %d\r\n" \
"Content-Type: application/x-www-form-urlencoded\r\n" \
"Host: %s\r\n\r\n%s\r\n",
- path, strlen(data), host, data);
+ path, (int)strlen(data), host, data);
if(!send(fd, h, strlen(h), 0)) return 0;
*buf = NULL;