]> diplodocus.org Git - nmh/blobdiff - sbr/seq_setprev.c
mhbuildsbr.c: Flip logic, moving goto to then-block; no need for else.
[nmh] / sbr / seq_setprev.c
index 11de1439bff28c125277a884a405985ad0ace84d..022628b6a80335e43fc9d7f0c090094d7edb7006 100644 (file)
@@ -1,6 +1,4 @@
-
-/*
- * seq_setprev.c -- set the Previous-Sequence
+/* seq_setprev.c -- set the Previous-Sequence
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
@@ -8,6 +6,7 @@
  */
 
 #include <h/mh.h>
+#include <h/utils.h>
 
 /*
  * Add all the messages currently SELECTED to
@@ -27,7 +26,7 @@ seq_setprev (struct msgs *mp)
      * and split them.
      */
     if ((cp = context_find (psequence))) {
-       dp = getcpy (cp);
+       dp = mh_xstrdup(cp);
        if (!(ap = brkstring (dp, " ", "\n")) || !*ap) {
            free (dp);
            return;