Pārlūkot izejas kodu

Don't multiply the index by 6, it's increased by that amount each loop.

master
Richard Nyberg pirms 19 gadiem
vecāks
revīzija
f9170e868c
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. +1
    -1
      btpd/tracker_req.c

+ 1
- 1
btpd/tracker_req.c Parādīt failu

@@ -116,7 +116,7 @@ tracker_done(struct child *child)
error = benc_dget_str(req->res->buf, "peers", &peers, &length);
if (error == 0 && length % 6 == 0) {
for (size_t i = 0; i < length; i += 6)
peer_create_out_compact(tp, peers + i * 6);
peer_create_out_compact(tp, peers + i);
}
}



Notiek ielāde…
Atcelt
Saglabāt