]> diplodocus.org Git - nmh/blobdiff - sbr/seq_setunseen.c
mhshowsbr.c: Remove else after break in iconv_start().
[nmh] / sbr / seq_setunseen.c
index 906b0ac252a95cbe484e81551f5db84bd71ca1a8..49bfda4d8c5a9dff6506c44911fc96727f165bfa 100644 (file)
@@ -1,12 +1,13 @@
-
-/*
- * seq_setunseen.c -- add/delete all messages which have the SELECT_UNSEEN
+/* seq_setunseen.c -- add/delete all messages which have the SELECT_UNSEEN
  *                 -- bit set to/from the Unseen-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>
 
 /*
  * We scan through the folder and act upon all messages
@@ -27,7 +28,7 @@ seq_setunseen (struct msgs *mp, int seen)
      * and split them.
      */
     if ((cp = context_find (usequence))) {
-       dp = getcpy (cp);
+       dp = mh_xstrdup(cp);
        if (!(ap = brkstring (dp, " ", "\n")) || !*ap) {
            free (dp);
            return;