On Thu, Jul 22, 2004 at 09:41:42AM +0900, TAKAHASHI Tamotsu wrote:
> + char imapheaders[STRING - 160] = ""; /* want_headers + BODY.PEEK[...] */
...
> + if (ImapHeaders && *ImapHeaders)
> + snprintf (imapheaders, sizeof (imapheaders), " %s", ImapHeaders);
Oh, it should be;
+ if (ImapHeaders && *ImapHeaders)
+ {
+ memset(imapheaders, 0, sizeof(imapheaders));
+ snprintf (imapheaders, sizeof (imapheaders) - 1, " %s", ImapHeaders);
+ }
--
tamo