make address functions a lot better, and less error prone.
[apps/madmutt.git] / pgp.c
diff --git a/pgp.c b/pgp.c
index 0848077..ab582c3 100644 (file)
--- a/pgp.c
+++ b/pgp.c
@@ -1106,7 +1106,7 @@ char *pgp_findKeys (address_t * to, address_t * cc, address_t * bcc)
       abort ();
     }
 
-    *last = rfc822_cpy_adr (p);
+    *last = address_list_dup (p);
     while (*last)
       last = &((*last)->next);
   }