Explorar el Código

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

master
Richard Nyberg hace 19 años
padre
commit
f9170e868c
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      btpd/tracker_req.c

+ 1
- 1
btpd/tracker_req.c Ver fichero

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



Cargando…
Cancelar
Guardar