--- a/src/internfile/mh_mail.cpp
+++ b/src/internfile/mh_mail.cpp
@@ -288,7 +288,7 @@
     }
 
     // Ipath
-    char nbuf[10];
+    char nbuf[20];
     sprintf(nbuf, "%d", m_idx);
     m_metaData["ipath"] = nbuf;