rework m_strformat so that it takes the cols number to use in case of
[apps/madmutt.git] / lib-crypt / smime.c
index 33c53b0..7e5690d 100644 (file)
@@ -113,8 +113,8 @@ int smime_valid_passphrase (void)
 /* This is almost identical to ppgp's invoking interface. */
 
 static const char *
-_mutt_fmt_smime_command (char *dest, ssize_t destlen, char op,
-                         const char *src, const char *prefix,
+_mutt_fmt_smime_command (char *dest, ssize_t destlen,
+                         char op, const char *src, const char *prefix,
                          const char *ifstr, const char *elstr,
                          anytype data, format_flag flags)
 {
@@ -219,7 +219,7 @@ _mutt_fmt_smime_command (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_fmt_smime_command, data, 0);
 
   return src;
@@ -231,7 +231,7 @@ static void mutt_smime_command (char *d, ssize_t dlen,
                                 struct smime_command_context *cctx,
                                 const char *fmt)
 {
-    m_strformat(d, dlen, fmt, _mutt_fmt_smime_command, cctx, 0);
+    m_strformat(d, dlen, 0, fmt, _mutt_fmt_smime_command, cctx, 0);
 }
 
 static pid_t smime_invoke (FILE ** smimein, FILE ** smimeout,