Browse Source

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

master
Richard Nyberg 19 years ago
parent
commit
f9170e868c
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      btpd/tracker_req.c

+ 1
- 1
btpd/tracker_req.c View File

@@ -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);
}
}



Loading…
Cancel
Save