]> diplodocus.org Git - nmh/blobdiff - sbr/seq_add.c
Fix post's die() to save errno before unlink(2)ing.
[nmh] / sbr / seq_add.c
index 47085f88f9ec61e88e50066b28a40be496d6472c..3dc74501e2d747744ad3f13648ca7e141c53edfa 100644 (file)
@@ -53,7 +53,7 @@ seq_addsel (struct msgs *mp, char *cp, int public, int zero)
      */
     if (new_seq) {
        if (!(svector_push_back (mp->msgattrs, strdup (cp)))) {
-           advise (NULL, "strdup failed");
+           inform("strdup failed");
            return 0;
        }
     }
@@ -140,7 +140,7 @@ seq_addmsg (struct msgs *mp, char *cp, int msgnum, int public, int zero)
      */
     if (new_seq) {
        if (!(svector_push_back (mp->msgattrs, strdup (cp)))) {
-           advise (NULL, "strdup failed");
+           inform("strdup failed");
            return 0;
        }
     }