]> diplodocus.org Git - nmh/blobdiff - sbr/folder_addmsg.c
mhlsbr.c: Don't strchr(3) non-string NUL-less buffer.
[nmh] / sbr / folder_addmsg.c
index 806cf929e796641dcbc9dff2b3eaf4dcf941b5b3..5a78a1241a3f3479310393e14066f9e322e1c804 100644 (file)
@@ -1,6 +1,4 @@
-
-/*
- * folder_addmsg.c -- Link message into folder
+/* folder_addmsg.c -- Link message into folder
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
@@ -52,13 +50,13 @@ folder_addmsg (struct msgs **mpp, char *msgfile, int selected,
          */
        if (msgnum > mp->hghoff) {
            if (!(mp = folder_realloc (mp, mp->lowoff, msgnum + 100))) {
-               advise (NULL, "unable to allocate folder storage");
+               inform("unable to allocate folder storage");
                return -1;
             }
             *mpp = mp;
        } else if (msgnum < mp->lowoff) {
            if (!(mp = folder_realloc (mp, msgnum, mp->hghoff))) {
-               advise (NULL, "unable to allocate folder storage");
+               inform("unable to allocate folder storage");
                return -1;
             }
             *mpp = mp;
@@ -165,7 +163,7 @@ folder_addmsg (struct msgs **mpp, char *msgfile, int selected,
          */
         if (linkerr == EXDEV  ||  linkerr == EPERM) {
             if (stat (newmsg, &st1) == 0) {
-                advise (NULL, "message %s:%s already exists", mp->foldpath, newmsg);
+                inform("message %s:%s already exists", mp->foldpath, newmsg);
                 return -1;
             }