X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=lib-mx%2Fcompress.c;h=c92853b97d1ac86ecbc9e938fe4a107e7749f7b5;hb=8a2967d883cee12f0de4c0cdf0cd594ea96e622b;hp=b9b237caaf4509548c5a25fb4b75279038cf442d;hpb=38dacbf03fe1a0daa9ce426caaef5582b90006b2;p=apps%2Fmadmutt.git diff --git a/lib-mx/compress.c b/lib-mx/compress.c index b9b237c..c92853b 100644 --- a/lib-mx/compress.c +++ b/lib-mx/compress.c @@ -167,13 +167,11 @@ int mutt_test_compress_command (const char *cmd) 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)