Commit 7f533683 7f53368338fe683c76ed678a032f676712b98cbf by Sergey Poznyakoff

(imap_envelope_date): bugfix

1 parent d2ef02c7
......@@ -1570,7 +1570,7 @@ imap_envelope_date (mu_envelope_t envelope, char *buffer, size_t buflen,
{
char tmpbuf[MU_ENVELOPE_DATE_LENGTH+1];
size_t n = mu_strftime (tmpbuf, sizeof tmpbuf,
MU_ENVELOPE_DATE_FORMAT, localtime (&tm));
MU_ENVELOPE_DATE_FORMAT, &tm);
n = mu_cpystr (buffer, tmpbuf, buflen);
if (plen)
*plen = n;
......