projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
oops, makedoc is used in the build process.
[apps/madmutt.git]
/
mutt_idna.c
diff --git
a/mutt_idna.c
b/mutt_idna.c
index
5078717
..
96d33d2
100644
(file)
--- a/
mutt_idna.c
+++ b/
mutt_idna.c
@@
-18,7
+18,6
@@
#include "charset.h"
#include "mutt_idna.h"
#include "charset.h"
#include "mutt_idna.h"
-#include "lib/mem.h"
#include "lib/intl.h"
#include "lib/str.h"
#include "lib/debug.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 {
*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__ */
}
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) {
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__ */
}
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;
}
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);
sprintf (buff, "%s@%s", NONULL (user), NONULL (tmp)); /* __SPRINTF_CHECKED__ */
p_delete(&tmp);
p_delete(&user);