Mercurial > noffle
comparison src/protocol.c @ 127:3c71e28c8eef noffle
[svn] Release-1-0 mergedocs/NOTES
| author | bears |
|---|---|
| date | Tue, 25 Jul 2000 13:14:54 +0100 |
| parents | d45b0abe7c79 |
| children | 8b9366fc1361 |
comparison
equal
deleted
inserted
replaced
| 126:7c7a7c96d35b | 127:3c71e28c8eef |
|---|---|
| 1 /* | 1 /* |
| 2 protocol.c | 2 protocol.c |
| 3 | 3 |
| 4 $Id: protocol.c 165 2000-06-25 18:42:10Z bears $ | 4 $Id: protocol.c 183 2000-07-25 12:14:54Z bears $ |
| 5 */ | 5 */ |
| 6 | 6 |
| 7 #if HAVE_CONFIG_H | 7 #if HAVE_CONFIG_H |
| 8 #include <config.h> | 8 #include <config.h> |
| 9 #endif | 9 #endif |
| 30 We also accept lines ending with "\n" instead of "\r\n", some | 30 We also accept lines ending with "\n" instead of "\r\n", some |
| 31 clients wrongly send such lines. | 31 clients wrongly send such lines. |
| 32 */ | 32 */ |
| 33 if ( ! fgets( line, MAXCHAR, f ) ) | 33 if ( ! fgets( line, MAXCHAR, f ) ) |
| 34 { | 34 { |
| 35 Log_dbg( "Prt_getLine failed" ); | 35 Log_dbg( "Prt_getLn failed" ); |
| 36 return FALSE; | 36 return FALSE; |
| 37 } | 37 } |
| 38 len = strlen( line ); | 38 len = strlen( line ); |
| 39 if ( line[ len - 1 ] == '\n' ) | 39 if ( line[ len - 1 ] == '\n' ) |
| 40 { | 40 { |
