diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2012-11-19 15:09:50 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2012-11-19 15:09:50 -0800 |
commit | 4e02f5f3a3af100d2f56e353a167b2b90c7252c0 (patch) | |
tree | f632553a62280f4bbcfd5ccbc3829630b299ab64 /uemis-downloader.c | |
parent | ddebdc09825f5eacc9b9c61b8eec98e1fdbebc1e (diff) | |
download | subsurface-4e02f5f3a3af100d2f56e353a167b2b90c7252c0.tar.gz |
Correctly reset the ANS file number when restarting Uemis download
If we ran out of space on the Uemis SDA during download and the user
unmounted, unplugged and replugged the SDA, we need to take care to
correctly reset the file number we use for finding the correct ANS file.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'uemis-downloader.c')
-rw-r--r-- | uemis-downloader.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/uemis-downloader.c b/uemis-downloader.c index 90f41620d..569f20353 100644 --- a/uemis-downloader.c +++ b/uemis-downloader.c @@ -128,11 +128,12 @@ static gboolean uemis_init(const char *path) if (sscanf(tmp + 1, "%d", &filenr) != 1) return FALSE; } -#if UEMIS_DEBUG > 1 else { + filenr = 0; +#if UEMIS_DEBUG > 1 fprintf(debugfile, "::r req.txt skipped as there were fewer than 5 bytes\n"); - } #endif + } close (reqtxt_file); /* It would be nice if we could simply go back to the first set of |