diff options
| author | Richard Nyberg <rnyberg@murmeldjur.se> | 2005-07-29 10:08:05 +0000 |
|---|---|---|
| committer | Richard Nyberg <rnyberg@murmeldjur.se> | 2005-07-29 10:08:05 +0000 |
| commit | 762b3560a5d1248736a72854370d85d030ae2ea7 (patch) | |
| tree | 9e205aabc7fdce554fca2347fdcdadf54d2f3c9a | |
| parent | aa31f523a3ac6f4038d8215809527d005eb34f84 (diff) | |
| download | btpd-762b3560a5d1248736a72854370d85d030ae2ea7.tar.gz btpd-762b3560a5d1248736a72854370d85d030ae2ea7.zip | |
Missing space.
| -rw-r--r-- | btpd/net.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/btpd/net.c b/btpd/net.c index 3c3fc2f..80810c3 100644 --- a/btpd/net.c +++ b/btpd/net.c @@ -304,7 +304,7 @@ net_send_multihave(struct peer *p) struct torrent *tp = p->tp; struct iob_link *out; out = malloc_liob(9 * tp->have_npieces); - for (uint32_t i = 0, count = 0; count <tp->have_npieces; i++) { + for (uint32_t i = 0, count = 0; count < tp->have_npieces; i++) { if (has_bit(tp->piece_field, i)) { net_write32(out->iob.buf + count * 9, 5); out->iob.buf[count * 9 + 4] = MSG_HAVE; |