mutt_FormatString -> m_strformat (will soon end up into the str lib \o/)
[apps/madmutt.git] / lib-mx / compress.c
index e89d438..37090fb 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)))
 {
                                             unsigned long data,
                                             format_flag flags __attribute__ ((unused)))
 {
-  char tmp[SHORT_STRING];
+  char tmp[STRING];
 
   CONTEXT *ctx = (CONTEXT *) data;
 
 
   CONTEXT *ctx = (CONTEXT *) data;
 
@@ -171,7 +171,7 @@ static char *get_compression_cmd (const char *cmd, const CONTEXT * ctx)
 {
   char expanded[_POSIX_PATH_MAX];
 
 {
   char expanded[_POSIX_PATH_MAX];
 
-  mutt_FormatString (expanded, sizeof (expanded), cmd,
+  m_strformat (expanded, sizeof (expanded), cmd,
                      compresshook_format_str, (unsigned long) ctx, 0);
   return m_strdup(expanded);
 }
                      compresshook_format_str, (unsigned long) ctx, 0);
   return m_strdup(expanded);
 }