rework m_strformat so that it takes the cols number to use in case of
[apps/madmutt.git] / lib-crypt / crypt-gpgme.c
index 906e56e..0f0b00f 100644 (file)
@@ -2309,7 +2309,7 @@ crypt_entry_fmt (char *dest, ssize_t destlen, char op,
   }
 
   if (flags & M_FORMAT_OPTIONAL)
-    m_strformat(dest, destlen, optional ? ifstr: elstr,
+    m_strformat(dest, destlen, 0, optional ? ifstr: elstr,
                 mutt_attach_fmt, data, 0);
   return src;
 }
@@ -2323,7 +2323,7 @@ static void crypt_entry (char *s, ssize_t l, MUTTMENU * menu, int num)
   entry.key = key_table[num];
   entry.num = num + 1;
 
-  m_strformat(s, l, PgpEntryFormat, crypt_entry_fmt, &entry,
+  m_strformat(s, l, COLS - SW, PgpEntryFormat, crypt_entry_fmt, &entry,
               option(OPTARROWCURSOR) ? M_FORMAT_ARROWCURSOR : 0);
 }