* It's licensed under the GNU General Public License,
* please see the file GPL in the top level source directory.
*/
-#if HAVE_CONFIG_H
-#include "config.h"
-#endif
-#include <stdlib.h>
-#include <stdio.h>
-#include <stdarg.h>
+#include <lib-lib/lib-lib.h>
#include <lib-mime/rfc3676.h>
for (i = 0; i < offset; i++)
if (Quotebuf[i] != ' ')
j = i;
- strncpy (buf, Quotebuf, j + 1);
- strcpy (buf + j + 1, Quotebuf + j);
+ m_strncpy(buf, sizeof(buf), Quotebuf, j + 1);
+ m_strcpy(buf + j + 1, sizeof(buf) - j - 1, Quotebuf + j);
}
else
snprintf (buf, sizeof (buf), "%s%s", NONULL (s->prefix), Quotebuf);