From: Peep P. <so...@us...> - 2004-03-21 13:53:23
|
Update of /cvsroot/agd/server/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31833 Modified Files: net.c Log Message: Input lines with \n and no \r are now stripped correctly (again). Index: net.c =================================================================== RCS file: /cvsroot/agd/server/src/net.c,v retrieving revision 1.10 retrieving revision 1.11 diff -u -d -r1.10 -r1.11 --- net.c 21 Mar 2004 10:35:02 -0000 1.10 +++ net.c 21 Mar 2004 13:43:05 -0000 1.11 @@ -181,12 +181,10 @@ } c = strchr(p->conn.recvbuf, '\r'); - if(c) *c = '\0'; -/* if(c) { - if(++c) - *c = '\0'; + if(c) { + *c = '\0'; } else if(c = strchr(p->conn.recvbuf, '\n')) - *c = '\0';*/ + *c = '\0'; p->input_to_called = 1; apply(p->ob, p->input_to, "s", p->conn.recvbuf); if(p->input_to_called) { /* input_to wasn't called again */ |