diff --git a/src/telxcc.c b/src/telxcc.c index 2b810266..1f4f9510 100644 --- a/src/telxcc.c +++ b/src/telxcc.c @@ -911,16 +911,12 @@ void tlt_read_rcwt() { if (buf == NULL) fatal(EXIT_NOT_ENOUGH_MEMORY, "Not enough memory"); - int nread = 0; - while(1) { - buffered_read(buf, len); past += result; - nread += (int) result; if (result != len) { - end_of_file=1; + end_of_file = 1; return; }