Fix rare protocol parse error due to incorrect recv queue handling.

This commit is contained in:
Jan Vidar Krey 2012-10-02 23:01:57 +02:00
parent 20a847e1b4
commit 61073bd304
2 changed files with 2 additions and 2 deletions

View File

@ -55,7 +55,7 @@ int handle_net_read(struct hub_user* user)
while ((pos = memchr(start, '\n', remaining))) while ((pos = memchr(start, '\n', remaining)))
{ {
lastPos = pos; lastPos = pos+1;
pos[0] = '\0'; pos[0] = '\0';
#ifdef DEBUG_SENDQ #ifdef DEBUG_SENDQ

View File

@ -403,7 +403,7 @@ static ssize_t ADC_client_recv(struct ADC_client* client)
while ((pos = memchr(start, '\n', remaining))) while ((pos = memchr(start, '\n', remaining)))
{ {
lastPos = pos; lastPos = pos+1;
pos[0] = '\0'; pos[0] = '\0';
#ifdef DEBUG_SENDQ #ifdef DEBUG_SENDQ