--- opencdk-0.6.6/src/stream.c 2007-11-08 19:31:45.000000000 +0100 +++ opencdk-0.6.6-my/src/stream.c 2011-01-17 20:30:19.000000000 +0100 @@ -1384,7 +1384,9 @@ while (!cdk_stream_eof (s) && count > 0) { c = cdk_stream_getc (s); - if (c == EOF || c == '\r' || c == '\n' ) + if (c == '\r') + c = cdk_stream_getc (s); + if (c == EOF || c == '\n' ) { buf[i++] = '\0'; break;