diff -cPr fetchmail-6.2.0/transact.c fetchmail-6.2.0-new/transact.c *** fetchmail-6.2.0/transact.c Mon Nov 25 23:04:56 2002 --- fetchmail-6.2.0-new/transact.c Tue Mar 25 18:50:59 2003 *************** *** 687,692 **** --- 687,706 ---- } } + if (linelen != strlen(line)) + { + printf("Warning: linelen not equal to strlen(line)\n"); + printf("This probably means there was a null in the line\n"); + printf("Everything (in this line) after the null is ignored\n"); + } + + if (line[strlen(line)-1] != '\n') + { + printf("line is not terminated by \\n\n"); + printf("This shouldn't happen. I'll try to fix it\n"); + line[strlen(line)-1] = '\n'; + } + if (!msgblk.headers) { oldlen = strlen(line);