Replace mh_xmalloc() with mh_xcalloc()
[mmh] / sbr / seq_list.c
index f051e38..241c720 100644 (file)
@@ -27,7 +27,7 @@ seq_list(struct msgs *mp, char *seqname)
        /* On first invocation, allocate initial buffer space */
        if (!buffer) {
                len = MAXBUFFER;
-               buffer = mh_xmalloc((size_t) len);
+               buffer = mh_xcalloc((size_t) len, sizeof(char));
        }
 
        /*
@@ -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) {