X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/9514ca81bd12a47df977822efc14ff285bd5bc10..b246954f6e1422c732780c8f568b3beb0e386964:/uip/sortm.c diff --git a/uip/sortm.c b/uip/sortm.c index 2a711199..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++; }