]> granicus.if.org Git - mutt/commitdiff
As pointed out in a separate thread, here is a patch which fixes the
authorMichał Kępień <mutt@kempniu.pl>
Mon, 28 Feb 2005 14:37:09 +0000 (14:37 +0000)
committerMichał Kępień <mutt@kempniu.pl>
Mon, 28 Feb 2005 14:37:09 +0000 (14:37 +0000)
problem of a failing openssl after interactively selecting a
recipient's key.

smime.c

diff --git a/smime.c b/smime.c
index c43eb2b636460ec8c208a7e0f126ea63182bf110..b635a313a87e405a593486eeb3b2af6a66ccc98e 100644 (file)
--- a/smime.c
+++ b/smime.c
@@ -464,8 +464,8 @@ char* smime_ask_for_key (char *prompt, char *mailbox, short public)
       }
     }
     if (hash) {
-      fname = safe_malloc(14); /* Hash + '.' + Suffix + \n + \0 */
-      sprintf(fname, "%.8x.%i\n", Table[cur].hash, Table[cur].suffix);
+      fname = safe_malloc(13); /* Hash + '.' + Suffix + \0 */
+      sprintf(fname, "%.8x.%i", Table[cur].hash, Table[cur].suffix);
     }
     else fname = NULL;