variable type cleanup to fix picky compiler warnings

This commit is contained in:
Daniel Stenberg 2004-07-01 07:43:20 +00:00
parent fcfd4bef2d
commit f05d47ddd6
3 changed files with 18 additions and 20 deletions

View file

@ -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");