checked/changed all sprintf calls

This commit is contained in:
Jean-Francois Dockes
2010-11-15 11:57:39 +01:00
parent c34e945299
commit 061ffda545
13 changed files with 31 additions and 20 deletions
+1 -1
View File
@@ -288,7 +288,7 @@ bool MimeHandlerMail::processAttach()
}
// Ipath
char nbuf[10];
char nbuf[20];
sprintf(nbuf, "%d", m_idx);
m_metaData["ipath"] = nbuf;
+1 -1
View File
@@ -140,7 +140,7 @@ bool MimeHandlerText::next_document()
// first chunk). This is a hack. The right thing to do would
// be to use a different mtype for files over the page size,
// and keep text/plain only for smaller files.
char buf[20];
char buf[30];
sprintf(buf, "%lld", (long long)(m_offs - m_text.length()));
if (m_offs - m_text.length() != 0)
m_metaData["ipath"] = buf;