]> diplodocus.org Git - nmh/blobdiff - sbr/seq_setprev.c
build_nmh: Have a silent curl still show errors.
[nmh] / sbr / seq_setprev.c
index e5161c5a4515a86a8b643c564c140f1a6552fb4b..d336e2a988682e1d109cd29c07f2a964a4bb5aec 100644 (file)
@@ -2,10 +2,13 @@
 /*
  * seq_setprev.c -- set the Previous-Sequence
  *
- * $Id$
+ * This code is Copyright (c) 2002, by the authors of nmh.  See the
+ * COPYRIGHT file in the root directory of the nmh distribution for
+ * complete copyright information.
  */
 
 #include <h/mh.h>
+#include <h/utils.h>
 
 /*
  * Add all the messages currently SELECTED to
@@ -25,7 +28,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;