aboutsummaryrefslogtreecommitdiff
path: root/networking/wget.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/wget.c')
-rw-r--r--networking/wget.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/networking/wget.c b/networking/wget.c
index e47c9a51b..ab9bc1836 100644
--- a/networking/wget.c
+++ b/networking/wget.c
@@ -457,11 +457,17 @@ static int ftpcmd(const char *s1, const char *s2, FILE *fp)
457 fprintf(stderr, "--> %s%s\n\n", s1, s2); 457 fprintf(stderr, "--> %s%s\n\n", s1, s2);
458 fflush(fp); 458 fflush(fp);
459 log_io("> %s%s", s1, s2); 459 log_io("> %s%s", s1, s2);
460#if ENABLE_PLATFORM_MINGW32
461 fseek(fp, 0L, SEEK_CUR);
462#endif
460 } 463 }
461 464
462 do { 465 do {
463 fgets_and_trim(fp, "%s\n"); 466 fgets_and_trim(fp, "%s\n");
464 } while (!isdigit(G.wget_buf[0]) || G.wget_buf[3] != ' '); 467 } while (!isdigit(G.wget_buf[0]) || G.wget_buf[3] != ' ');
468#if ENABLE_PLATFORM_MINGW32
469 fseek(fp, 0L, SEEK_CUR);
470#endif
465 471
466 G.wget_buf[3] = '\0'; 472 G.wget_buf[3] = '\0';
467 result = xatoi_positive(G.wget_buf); 473 result = xatoi_positive(G.wget_buf);