diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-07-01 07:43:20 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-07-01 07:43:20 +0000 |
commit | f05d47ddd6d706dcda05504da8c90a111d53f67b (patch) | |
tree | 98140a0c7d6bd8610bc725788a43ed39921a6e8d /lib/ftp.c | |
parent | fcfd4bef2dc9dc90e39ab5cb8f49686119917bb3 (diff) |
variable type cleanup to fix picky compiler warnings
Diffstat (limited to 'lib/ftp.c')
-rw-r--r-- | lib/ftp.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -2662,9 +2662,8 @@ CURLcode ftp_regular_transfer(struct connectdata *conn) /* we skip empty path components, like "x//y" since the FTP command CWD requires a parameter and a non-existant parameter a) doesn't work on many servers and b) has no effect on the others. */ - ftp->dirs[ftp->dirdepth] = curl_unescape(cur_pos - absolute_dir, - slash_pos - cur_pos + - absolute_dir); + int len = (int)(slash_pos - cur_pos + absolute_dir); + ftp->dirs[ftp->dirdepth] = curl_unescape(cur_pos - absolute_dir, len); if (!ftp->dirs[ftp->dirdepth]) { /* run out of memory ... */ failf(data, "no memory"); |