diff options
Diffstat (limited to 'ot_sync.c')
| -rw-r--r-- | ot_sync.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -51,7 +51,7 @@ int add_changeset_to_tracker(uint8_t *data, size_t len) { | |||
| 51 | data += sizeof(ot_hash); | 51 | data += sizeof(ot_hash); |
| 52 | 52 | ||
| 53 | /* Scan string length indicator, strictly: bencode writes no leading zeros */ | 53 | /* Scan string length indicator, strictly: bencode writes no leading zeros */ |
| 54 | data += (len = scan_udec_bencode((char *)data, &peer_count, (uint64_t)(end - data))); | 54 | data += (len = scan_uint_bencode((char *)data, &peer_count, (uint64_t)(end - data))); |
| 55 | 55 | ||
| 56 | /* If no long was scanned, it is not divisible by 8, it is not | 56 | /* If no long was scanned, it is not divisible by 8, it is not |
| 57 | followed by a colon or claims to need to much memory, we fail */ | 57 | followed by a colon or claims to need to much memory, we fail */ |
