*/
#include "h/mh.h"
+#include "m_name.h"
#include "seq_setcur.h"
#include "ext_hook.h"
#include "folder_realloc.h"
for (msgnum = mp->lowmsg, hole = 1; msgnum <= mp->hghmsg; msgnum++) {
if (does_exist (mp, msgnum)) {
if (msgnum != hole) {
- strncpy (newmsg, m_name (hole), sizeof(newmsg));
- strncpy (oldmsg, m_name (msgnum), sizeof(oldmsg));
+ strncpy (newmsg, m_name (hole), sizeof(newmsg) - 1);
+ strncpy (oldmsg, m_name (msgnum), sizeof(oldmsg) - 1);
if (verbose)
printf ("message %s becomes %s\n", oldmsg, newmsg);