diff options
Diffstat (limited to 'networking/ftpgetput.c')
-rw-r--r-- | networking/ftpgetput.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/networking/ftpgetput.c b/networking/ftpgetput.c index d70f4ca77..cb0a96b59 100644 --- a/networking/ftpgetput.c +++ b/networking/ftpgetput.c | |||
@@ -123,6 +123,9 @@ static int ftpcmd(const char *s1, const char *s2) | |||
123 | fprintf(control_stream, (s2 ? "%s %s\r\n" : "%s %s\r\n"+3), | 123 | fprintf(control_stream, (s2 ? "%s %s\r\n" : "%s %s\r\n"+3), |
124 | s1, s2); | 124 | s1, s2); |
125 | fflush(control_stream); | 125 | fflush(control_stream); |
126 | #if ENABLE_PLATFORM_MINGW32 | ||
127 | fseek(control_stream, 0L, SEEK_CUR); | ||
128 | #endif | ||
126 | } | 129 | } |
127 | 130 | ||
128 | do { | 131 | do { |
@@ -131,6 +134,9 @@ static int ftpcmd(const char *s1, const char *s2) | |||
131 | ftp_die(NULL); | 134 | ftp_die(NULL); |
132 | } | 135 | } |
133 | } while (!isdigit(buf[0]) || buf[3] != ' '); | 136 | } while (!isdigit(buf[0]) || buf[3] != ' '); |
137 | #if ENABLE_PLATFORM_MINGW32 | ||
138 | fseek(control_stream, 0L, SEEK_CUR); | ||
139 | #endif | ||
134 | 140 | ||
135 | buf[3] = '\0'; | 141 | buf[3] = '\0'; |
136 | n = xatou(buf); | 142 | n = xatou(buf); |