summaryrefslogtreecommitdiff
path: root/ot_sync.c
diff options
context:
space:
mode:
Diffstat (limited to 'ot_sync.c')
-rw-r--r--ot_sync.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ot_sync.c b/ot_sync.c
index 5527c94..1a6bebc 100644
--- a/ot_sync.c
+++ b/ot_sync.c
@@ -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 */