]> diplodocus.org Git - nmh/blobdiff - uip/sortm.c
h/prototypes.h: Remove scan_reset_m_getfld_state() prototype.
[nmh] / uip / sortm.c
index 2a711199a19600948b38fc9ec10577f318056953..8fa9e5b538bd968f4c5e4b3d21dcda38ce05238c 100644 (file)
@@ -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++;
                }