Bugfix in fnet-dc.c to enable resuming files >2 GB.
authorFredrik Tolf <fredrik@dolda2000.com>
Mon, 18 Feb 2008 14:36:22 +0000 (15:36 +0100)
committerFredrik Tolf <fredrik@dolda2000.com>
Mon, 18 Feb 2008 21:05:40 +0000 (22:05 +0100)
daemon/fnet-dc.c

index d934025..c4d81c6 100644 (file)
@@ -641,7 +641,7 @@ static int trresumecb(struct transfer *transfer, wchar_t *cmd, wchar_t *arg, str
            flog(LOG_WARNING, "filter returned no position for \"resume\" on transfer %i", transfer->id);
            freedcpeer(peer);
        } else {
-           transfer->curpos = wcstol(arg, NULL, 10);
+           transfer->curpos = wcstoll(arg, NULL, 10);
            peer->hascurpos = 1;
            requestfile(peer);
        }