commit | c9c2dab60fae3b28816cc34a84374c5be7114220 | [log] [tgz] |
---|---|---|
author | adamdunkels <adamdunkels> | jeu. sept. 09 21:19:46 2004 +0000 |
committer | adamdunkels <adamdunkels> | jeu. sept. 09 21:19:46 2004 +0000 |
tree | 8bc284c89aa349b9e44546ba5805b1d49be618ee | |
parent | b1a88e27be4ef169f520664c8019a7e474f6efc3 [diff] [blame] |
Bugfix: socket read is no longer ended on segment boundaries
diff --git a/contiki/uip/socket.c b/contiki/uip/socket.c index db0356f..cd6b257 100644 --- a/contiki/uip/socket.c +++ b/contiki/uip/socket.c
@@ -100,8 +100,7 @@ } } while((uipbuf_bufto(&socket->buf, c, &socket->readptr, - &socket->readlen) & UIPBUF_FOUND) == 0 && - socket->readlen > 0); + &socket->readlen) & UIPBUF_FOUND) == 0); if(uipbuf_len(&socket->buf) == 0) { socket->state = SOCKET_STATE_NONE;