let the caller deal with M_FORMAT_ARROWCURSOR, not the callee.
[apps/madmutt.git] / lib-mx / compress.c
index e89d438..00064b7 100644 (file)
@@ -142,7 +142,7 @@ static const char *compresshook_format_str (char *dest, ssize_t destlen,
                                             unsigned long data,
                                             format_flag flags __attribute__ ((unused)))
 {
-  char tmp[SHORT_STRING];
+  char tmp[STRING];
 
   CONTEXT *ctx = (CONTEXT *) data;
 
@@ -171,8 +171,8 @@ static char *get_compression_cmd (const char *cmd, const CONTEXT * ctx)
 {
   char expanded[_POSIX_PATH_MAX];
 
-  mutt_FormatString (expanded, sizeof (expanded), cmd,
-                     compresshook_format_str, (unsigned long) ctx, 0);
+  m_strformat(expanded, sizeof (expanded), cmd, compresshook_format_str,
+              (unsigned long)ctx, 0);
   return m_strdup(expanded);
 }