]> diplodocus.org Git - nmh/blobdiff - sbr/seq_setprev.c
build_nmh: If cloning with git, make a shallow clone.
[nmh] / sbr / seq_setprev.c
index 11de1439bff28c125277a884a405985ad0ace84d..d336e2a988682e1d109cd29c07f2a964a4bb5aec 100644 (file)
@@ -8,6 +8,7 @@
  */
 
 #include <h/mh.h>
+#include <h/utils.h>
 
 /*
  * Add all the messages currently SELECTED to
@@ -27,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;