diff options
author | Daniel Stenberg <daniel@haxx.se> | 2018-08-31 10:17:40 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2018-09-01 10:40:42 +0200 |
commit | 1a890997a47d4d22df58b5183181685e49ed6e61 (patch) | |
tree | d6510eb7592ca21eb554c23795c12daacccf1694 /lib/socks.c | |
parent | 9dda13bbac1938c13ddf0a9cc4d9dd0302ff0331 (diff) | |
download | curl-1a890997a47d4d22df58b5183181685e49ed6e61.tar.gz |
all: s/int/size_t cleanup
Assisted-by: Rikard Falkeborn
Closes #2922
Diffstat (limited to 'lib/socks.c')
-rw-r--r-- | lib/socks.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/socks.c b/lib/socks.c index 73326e5c2..81f3eda28 100644 --- a/lib/socks.c +++ b/lib/socks.c @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2017, Daniel Stenberg, <daniel@haxx.se>, et al. + * Copyright (C) 1998 - 2018, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -222,8 +222,8 @@ CURLcode Curl_SOCKS4(const char *proxy_user, ssize_t actualread; ssize_t written; ssize_t hostnamelen = 0; - int packetsize = 9 + - (int)strlen((char *)socksreq + 8); /* size including NUL */ + ssize_t packetsize = 9 + + strlen((char *)socksreq + 8); /* size including NUL */ /* If SOCKS4a, set special invalid IP address 0.0.0.x */ if(protocol4a) { |