diff --git a/src/core/netevent.c b/src/core/netevent.c index e2c4834..7c31f69 100644 --- a/src/core/netevent.c +++ b/src/core/netevent.c @@ -55,7 +55,7 @@ int handle_net_read(struct hub_user* user) while ((pos = memchr(start, '\n', remaining))) { - lastPos = pos; + lastPos = pos+1; pos[0] = '\0'; #ifdef DEBUG_SENDQ diff --git a/src/tools/adcclient.c b/src/tools/adcclient.c index b0974a2..71a2d52 100644 --- a/src/tools/adcclient.c +++ b/src/tools/adcclient.c @@ -403,7 +403,7 @@ static ssize_t ADC_client_recv(struct ADC_client* client) while ((pos = memchr(start, '\n', remaining))) { - lastPos = pos; + lastPos = pos+1; pos[0] = '\0'; #ifdef DEBUG_SENDQ