X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=mutt_idna.c;h=96d33d2f571a911290826eee5f80a797899ae39c;hp=5078717041064ed2d702d1f69b20d5f635a0ff55;hb=9e6ab0152703ad301042ce8810859f41fbee405a;hpb=23002a877577341cfd68687e58348e0ca01b1ac5 diff --git a/mutt_idna.c b/mutt_idna.c index 5078717..96d33d2 100644 --- a/mutt_idna.c +++ b/mutt_idna.c @@ -18,7 +18,6 @@ #include "charset.h" #include "mutt_idna.h" -#include "lib/mem.h" #include "lib/intl.h" #include "lib/str.h" #include "lib/debug.h" @@ -157,7 +156,7 @@ int mutt_addrlist_to_idna (ADDRESS * a, char **err) *err = str_dup (domain); } else { - mem_realloc (&a->mailbox, str_len (user) + str_len (tmp) + 2); + p_realloc(&a->mailbox, str_len(user) + str_len(tmp) + 2); sprintf (a->mailbox, "%s@%s", NONULL (user), NONULL (tmp)); /* __SPRINTF_CHECKED__ */ } @@ -184,7 +183,7 @@ int mutt_addrlist_to_local (ADDRESS * a) continue; if (mutt_idna_to_local (domain, &tmp, 0) == 0) { - mem_realloc (&a->mailbox, str_len (user) + str_len (tmp) + 2); + p_realloc(&a->mailbox, str_len(user) + str_len(tmp) + 2); sprintf (a->mailbox, "%s@%s", NONULL (user), NONULL (tmp)); /* __SPRINTF_CHECKED__ */ } @@ -218,7 +217,7 @@ const char *mutt_addr_for_display (ADDRESS * a) return a->mailbox; } - mem_realloc (&buff, str_len (tmp) + str_len (user) + 2); + p_realloc(&buff, str_len(tmp) + str_len(user) + 2); sprintf (buff, "%s@%s", NONULL (user), NONULL (tmp)); /* __SPRINTF_CHECKED__ */ p_delete(&tmp); p_delete(&user);