]> granicus.if.org Git - mutt/commitdiff
S/MIME key selection truncates the last character of the selected key for
authorJeff Ito <jeffi@rcn.com>
Wed, 5 Oct 2005 19:20:22 +0000 (19:20 +0000)
committerJeff Ito <jeffi@rcn.com>
Wed, 5 Oct 2005 19:20:22 +0000 (19:20 +0000)
no apparent reason. Removed until someone can justify it. Closes: #2081.

smime.c

diff --git a/smime.c b/smime.c
index e8150a7dfccea109bfa9d7fb2d860ed15c3a6b3e..ea54973ba5f2d4a3ed7b913963b5ddd0658c01f5 100644 (file)
--- a/smime.c
+++ b/smime.c
@@ -1989,7 +1989,6 @@ int smime_send_menu (HEADER *msg, int *redraw)
 
     if ((p = smime_ask_for_key (_("Sign as: "), NULL, 0))) 
     {
-      p[mutt_strlen (p)-1] = '\0';
       mutt_str_replace (&SmimeDefaultKey, p);
        
       msg->security |= SIGN;