X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/4d3c5111a2a7716e957547cb80a1efe7accabf6f..7cca9c4da3b90561d4cdf7de97f534d6c98ae1f4:/uip/sortm.c diff --git a/uip/sortm.c b/uip/sortm.c index 4f5602fe..8fa9e5b5 100644 --- a/uip/sortm.c +++ b/uip/sortm.c @@ -335,7 +335,7 @@ get_fields (char *datesw, int msg, struct smsg *smsg) { int state; int compnum; - char *msgnam, buf[BUFSIZ], nam[NAMESZ]; + char *msgnam, buf[NMH_BUFSIZ], nam[NAMESZ]; struct tws *tw; char *datecomp = NULL, *subjcomp = NULL; FILE *in; @@ -431,10 +431,9 @@ get_fields (char *datesw, int msg, struct smsg *smsg) if (strcmp (subjsort, "subject") == 0) { while ((c = *cp)) { if (! isspace((unsigned char) c)) { - if(uprf(cp, "re:")) - cp += 2; - else + if(!uprf(cp, "re:")) break; + cp += 2; } cp++; } @@ -585,7 +584,7 @@ rename_msgs (struct msgs *mp, struct smsg **mlist) rename_chain (mp, mlist, j, i); /* - * Run the external hook to refile the temorary message number + * Run the external hook to refile the temporary message number * to the real place. */