Fixed ftp support with uClibc due to differing inet_ntoa_r() behaviour.

This commit is contained in:
Dan Fandrich 2005-03-15 21:00:46 +00:00
parent 9a5c21c16f
commit efaf688650
6 changed files with 32 additions and 14 deletions

View file

@ -1524,7 +1524,7 @@ static CURLcode ftp_state_pasv_resp(struct connectdata *conn,
&separator[2],
&num,
&separator[3])) {
char sep1 = separator[0];
const char sep1 = separator[0];
int i;
/* The four separators should be identical, or else this is an oddly
@ -1539,7 +1539,7 @@ static CURLcode ftp_state_pasv_resp(struct connectdata *conn,
newport = num;
/* use the same IP we are already connected to */
snprintf(newhost, NEWHOST_BUFSIZE, "%s", conn->ip_addr_str, newhost);
snprintf(newhost, NEWHOST_BUFSIZE, "%s", conn->ip_addr_str);
}
}
else