]> diplodocus.org Git - nmh/blobdiff - sbr/folder_delmsgs.c
Tell make that uip/mhical.c depends on sbr/icalparse.h
[nmh] / sbr / folder_delmsgs.c
index 43eb0ad3a619d855db2a9061ea05fda1f3073cf8..a385827ba498f37c2d0ccdac9f63258af87d8254 100644 (file)
@@ -5,8 +5,16 @@
  * complete copyright information.
  */
 
-#include <h/mh.h>
-#include <h/utils.h>
+#include "h/mh.h"
+#include "m_name.h"
+#include "seq_save.h"
+#include "m_backup.h"
+#include "ext_hook.h"
+#include "folder_delmsgs.h"
+#include "context_save.h"
+#include "arglist.h"
+#include "error.h"
+#include "h/utils.h"
 #include "m_mktemp.h"
 
 /*
@@ -116,7 +124,7 @@ folder_delmsgs (struct msgs *mp, int unlink_msgs, int nohook)
                }
            } else {
                /* or rename messages with standard prefix */
-               strncpy (buf, m_backup (dp), sizeof(buf));
+               strncpy (buf, m_backup (dp), sizeof(buf) - 1);
                if (rename (dp, buf) == -1) {
                    admonish (buf, "unable to rename %s to", dp);
                    retval = -1;