X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2Fseq_list.c;h=148ecb90f4263aa663f84be387dcf4e2d82a9f82;hp=a6cdbdaa677fbd2ba17fea9747d603d3cd8bdd2f;hb=0595979e1f0514b3da28762f336b3b9ac9eec5c5;hpb=3cc8ed080f6e741b8df04a3ebe764c659e75cb38 diff --git a/sbr/seq_list.c b/sbr/seq_list.c index a6cdbda..148ecb9 100644 --- a/sbr/seq_list.c +++ b/sbr/seq_list.c @@ -36,7 +36,7 @@ seq_list(struct msgs *mp, char *seqname) ** This is returned, even if message doesn't exist or the ** folder is empty. */ - if (!strcmp(seq_cur, seqname)) { + if (strcmp(seq_cur, seqname)==0) { if (mp->curmsg) { sprintf(buffer, "%s", m_name(mp->curmsg)); return (buffer); @@ -91,8 +91,8 @@ seq_list(struct msgs *mp, char *seqname) /* ** Scan to the end of this message range */ - for (++i; i <= mp->hghmsg && does_exist(mp, i) && in_sequence(mp, seqnum, i); - ++i) + for (++i; i <= mp->hghmsg && does_exist(mp, i) && + in_sequence(mp, seqnum, i); ++i) ; if (i - j > 1) {