]> diplodocus.org Git - nmh/blobdiff - sbr/seq_setunseen.c
picksbr.c: fprintf function pointer with unsigned-long-long cast.
[nmh] / sbr / seq_setunseen.c
index 022982eaafc0700cc99327a9d245d444b1cf07a8..49bfda4d8c5a9dff6506c44911fc96727f165bfa 100644 (file)
@@ -1,16 +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
@@ -31,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;