diff options
Diffstat (limited to 'opentracker.c')
| -rw-r--r-- | opentracker.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/opentracker.c b/opentracker.c index f0f6404..7de6c6a 100644 --- a/opentracker.c +++ b/opentracker.c | |||
| @@ -379,10 +379,10 @@ void load_state(const char *const state_filename) { | |||
| 379 | continue; | 379 | continue; |
| 380 | i = 2 * sizeof(ot_hash); | 380 | i = 2 * sizeof(ot_hash); |
| 381 | 381 | ||
| 382 | if (inbuf[i++] != ':' || !(consumed = scan_udec(inbuf + i, &base, UINT64_MAX))) | 382 | if (inbuf[i++] != ':' || !(consumed = scan_uint(inbuf + i, &base, UINT64_MAX))) |
| 383 | continue; | 383 | continue; |
| 384 | i += consumed; | 384 | i += consumed; |
| 385 | if (inbuf[i++] != ':' || !(consumed = scan_udec(inbuf + i, &downcount, UINT64_MAX))) | 385 | if (inbuf[i++] != ':' || !(consumed = scan_uint(inbuf + i, &downcount, UINT64_MAX))) |
| 386 | continue; | 386 | continue; |
| 387 | add_torrent_from_saved_state(infohash, base, downcount); | 387 | add_torrent_from_saved_state(infohash, base, downcount); |
| 388 | } | 388 | } |
