#include "charset.h"
#include "mutt_idna.h"
-#include "lib/mem.h"
#include "lib/intl.h"
#include "lib/str.h"
#include "lib/debug.h"
*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__ */
}
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__ */
}
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);