]> 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 533ab9bae2847104044ebb6de3c0880a5a2de4a9..a385827ba498f37c2d0ccdac9f63258af87d8254 100644 (file)
@@ -124,7 +124,7 @@ folder_delmsgs (struct msgs *mp, int unlink_msgs, int nohook)
                }
            } else {
                /* or rename messages with standard prefix */
                }
            } 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;
                if (rename (dp, buf) == -1) {
                    admonish (buf, "unable to rename %s to", dp);
                    retval = -1;