diff options
author | Nick White <git@njw.me.uk> | 2011-10-04 18:21:53 +0100 |
---|---|---|
committer | Nick White <git@njw.me.uk> | 2011-10-04 18:21:53 +0100 |
commit | 9d68e29dae73cb08534a34ddd54d55a23be16e3f (patch) | |
tree | bbcf293bddc38473a837fbc8dac2d5a820a8ecc5 | |
parent | 63a66e5e1d8a5caebc15139cbaefd082aca8a8ee (diff) |
Use appropriate cast for strlen
-rw-r--r-- | util.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |