Fixed ftp support with uClibc due to differing inet_ntoa_r() behaviour.
[platform/upstream/curl.git] / lib / ftp.c
index 526ff56..79d03e9 100644 (file)
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -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