aboutsummaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
Diffstat (limited to 'networking')
-rw-r--r--networking/ftpgetput.c6
-rw-r--r--networking/wget.c6
2 files changed, 12 insertions, 0 deletions
diff --git a/networking/ftpgetput.c b/networking/ftpgetput.c
index 40a3271ab..0b06f85b4 100644
--- a/networking/ftpgetput.c
+++ b/networking/ftpgetput.c
@@ -125,6 +125,9 @@ static int ftpcmd(const char *s1, const char *s2)
125 fprintf(control_stream, (s2 ? "%s %s\r\n" : "%s %s\r\n"+3), 125 fprintf(control_stream, (s2 ? "%s %s\r\n" : "%s %s\r\n"+3),
126 s1, s2); 126 s1, s2);
127 fflush(control_stream); 127 fflush(control_stream);
128#if ENABLE_PLATFORM_MINGW32
129 fseek(control_stream, 0L, SEEK_CUR);
130#endif
128 } 131 }
129 132
130 do { 133 do {
@@ -133,6 +136,9 @@ static int ftpcmd(const char *s1, const char *s2)
133 ftp_die(NULL); 136 ftp_die(NULL);
134 } 137 }
135 } while (!isdigit(buf[0]) || buf[3] != ' '); 138 } while (!isdigit(buf[0]) || buf[3] != ' ');
139#if ENABLE_PLATFORM_MINGW32
140 fseek(control_stream, 0L, SEEK_CUR);
141#endif
136 142
137 buf[3] = '\0'; 143 buf[3] = '\0';
138 n = xatou(buf); 144 n = xatou(buf);
diff --git a/networking/wget.c b/networking/wget.c
index b082a0f59..460b4b833 100644
--- a/networking/wget.c
+++ b/networking/wget.c
@@ -425,11 +425,17 @@ static int ftpcmd(const char *s1, const char *s2, FILE *fp)
425 fprintf(fp, "%s%s\r\n", s1, s2); 425 fprintf(fp, "%s%s\r\n", s1, s2);
426 fflush(fp); 426 fflush(fp);
427 log_io("> %s%s", s1, s2); 427 log_io("> %s%s", s1, s2);
428#if ENABLE_PLATFORM_MINGW32
429 fseek(fp, 0L, SEEK_CUR);
430#endif
428 } 431 }
429 432
430 do { 433 do {
431 fgets_and_trim(fp); 434 fgets_and_trim(fp);
432 } while (!isdigit(G.wget_buf[0]) || G.wget_buf[3] != ' '); 435 } while (!isdigit(G.wget_buf[0]) || G.wget_buf[3] != ' ');
436#if ENABLE_PLATFORM_MINGW32
437 fseek(fp, 0L, SEEK_CUR);
438#endif
433 439
434 G.wget_buf[3] = '\0'; 440 G.wget_buf[3] = '\0';
435 result = xatoi_positive(G.wget_buf); 441 result = xatoi_positive(G.wget_buf);