diff options
Diffstat (limited to 'networking/wget.c')
-rw-r--r-- | networking/wget.c | 6 |
1 files changed, 6 insertions, 0 deletions
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); |