]> 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 ac5e936779fadd6c72818db7bcbee66b6de99145..a385827ba498f37c2d0ccdac9f63258af87d8254 100644 (file)
@@ -5,9 +5,16 @@
  * complete copyright information.
  */
 
-#include <h/mh.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 "h/utils.h"
 #include "m_mktemp.h"
 
 /*
@@ -117,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;