return (strstr (cmd, "%f") && strstr (cmd, "%t")) ? 0 : -1;
}
-static char *get_compression_cmd (const char *cmd, const CONTEXT * ctx)
+static char *get_compression_cmd(const char *cmd, const CONTEXT * ctx)
{
- char expanded[_POSIX_PATH_MAX];
-
- m_strformat(expanded, sizeof (expanded), cmd, compresshook_format_str,
- (void *)ctx, 0);
- return m_strdup(expanded);
+ char buf[_POSIX_PATH_MAX];
+ m_strformat(buf, sizeof(buf), cmd, compresshook_format_str, ctx, 0);
+ return m_strdup(buf);
}
int mutt_check_mailbox_compressed (CONTEXT * ctx)