[bug #4297] The strlen mh-format function can crash if 'str' is null.
[mmh] / uip / inc.c
index ec4f520..09cfa95 100644 (file)
--- a/uip/inc.c
+++ b/uip/inc.c
@@ -844,6 +844,9 @@ go_to_it:
 
                msgnum++;
                mp->hghmsg++;
+               mp->nummsg++;
+               if (mp->lowmsg == 0) mp->lowmsg = 1;
+
                clear_msg_flags (mp, msgnum);
                set_exists (mp, msgnum);
                set_unseen (mp, msgnum);