diff packages/net/ftpclient/current/src/ftpclient.c @ 1792:435babd3f38e

* src/ftpclient.c (opendatasock): Don't clobber the socket variable with a temporary variable of local scope.
author asl
date Tue, 05 Oct 2004 08:04:34 +0000
parents 0e6a7d89dd0e
children 1f65cc07a3e5
line wrap: on
line diff
--- a/packages/net/ftpclient/current/src/ftpclient.c
+++ b/packages/net/ftpclient/current/src/ftpclient.c
@@ -400,10 +400,10 @@ opendatasock(int ctrl_s,
 
     if (ret != 2) {
         int _port = atoi(port);
-        char *s = name;
-        while (*s) {
-            if (*s == '.') *s = ',';
-            s++;
+        char *str = name;
+        while (*str) {
+            if (*str == '.') *str = ',';
+            str++;
         }
         snprintf(buf, sizeof(buf), "%s,%d,%d", name, _port/256, _port%256);
         ret = command("PORT",buf,ctrl_s,msgbuf,msgbuflen,ftp_printf);