if (S_ISDIR(st.st_mode))
{
/* if we have a maildir mailbox, we need to stat the "new" dir */
+ struct Buffer *buf = mutt_buffer_pool_get();
- char buf[PATH_MAX];
-
- snprintf(buf, sizeof(buf), "%s/new", C_Postponed);
- if ((access(buf, F_OK) == 0) && (stat(buf, &st) == -1))
+ mutt_buffer_printf(buf, "%s/new", C_Postponed);
+ if ((access(mutt_b2s(buf), F_OK) == 0) && (stat(mutt_b2s(buf), &st) == -1))
{
PostCount = 0;
LastModify = 0;
+ mutt_buffer_pool_release(&buf);
return 0;
}
+ mutt_buffer_pool_release(&buf);
}
if (LastModify < st.st_mtime)