X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=sbr%2Fm_getfld.c;h=8fd836430b4d6ef07ae9914236e95acf285e2aaa;hb=c477dc5d1d03fa6d9a8ab3dd3508c63cbddc044e;hp=db509fcc6e89c44eba22085db1cb4966bbed7198;hpb=5b792c4424571f05bc2008e3109797d18d7d00d1;p=mmh diff --git a/sbr/m_getfld.c b/sbr/m_getfld.c index db509fc..8fd8364 100644 --- a/sbr/m_getfld.c +++ b/sbr/m_getfld.c @@ -716,7 +716,7 @@ m_Eom(int c, FILE *iob) pos = ftell(iob); if ((i = fread(text, sizeof *text, edelimlen, iob)) != edelimlen - || strncmp(text, (char *)edelim, edelimlen)) { + || (strncmp(text, (char *)edelim, edelimlen)!=0)) { if (i == 0 && msg_style == MS_MBOX) /* ** the final newline in the (brain damaged) unix-format @@ -724,10 +724,6 @@ m_Eom(int c, FILE *iob) */ return 1; -#if 0 - fseek(iob, pos, SEEK_SET); -#endif - fseek(iob, (long)(pos-1), SEEK_SET); getc(iob); /* should be OK */ return 0;