Commit 91dfd76f 91dfd76f25b460e27663701bc1e30a5af1ab2c77 by Alain Magloire

overflow by 1 byte, ... sigh.

1 parent 3ef2ebb6
...@@ -410,7 +410,7 @@ mbox_tmpfile (mailbox_t mailbox, char **pbox) ...@@ -410,7 +410,7 @@ mbox_tmpfile (mailbox_t mailbox, char **pbox)
410 else 410 else
411 basename = mud->name; 411 basename = mud->name;
412 *pbox = calloc (strlen (tmpdir) + strlen ("MBOX_") + 412 *pbox = calloc (strlen (tmpdir) + strlen ("MBOX_") +
413 strlen (basename) + 1, sizeof (char)); 413 strlen (basename) + 2/* separator + null */, sizeof (char));
414 if (*pbox == NULL) 414 if (*pbox == NULL)
415 return NULL; 415 return NULL;
416 sprintf (*pbox, "%s/%s%s", tmpdir, "MBOX_", basename); 416 sprintf (*pbox, "%s/%s%s", tmpdir, "MBOX_", basename);
......