summaryrefslogtreecommitdiffabout
path: root/src/mail.c
Side-by-side diff
Diffstat (limited to 'src/mail.c') (more/less context) (show whitespace changes)
-rw-r--r--src/mail.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/mail.c b/src/mail.c
index bac0381..6855ed7 100644
--- a/src/mail.c
+++ b/src/mail.c
@@ -293,3 +293,3 @@ mail_send_message (mu_address_t rcpt, const char *text,
mu_address_to_string (rcpt, NULL, 0, &size);
- buf = xmalloc (size + 1);
+ buf = grecs_malloc (size + 1);
mu_address_to_string (rcpt, buf, size + 1, NULL);
@@ -302,3 +302,3 @@ mail_send_message (mu_address_t rcpt, const char *text,
mu_address_to_string (from_address, NULL, 0, &size);
- buf = xmalloc (size + 1);
+ buf = grecs_malloc (size + 1);
mu_address_to_string (from_address, buf, size + 1, NULL);
@@ -436,3 +436,3 @@ mail_stats ()
mu_address_to_string (admin_address, NULL, 0, &size);
- buf = xmalloc (size + 1);
+ buf = grecs_malloc (size + 1);
mu_address_to_string (admin_address, buf, size + 1, NULL);
@@ -446,3 +446,3 @@ mail_stats ()
exp[0].kw = "date";
- exp[0].value = exp[0].storage = xstrdup (ctime (&t));
+ exp[0].value = exp[0].storage = grecs_strdup (ctime (&t));
exp[0].value [strlen (exp[0].value) - 1] = 0;
@@ -600,3 +600,3 @@ do_notify (struct file_triplet *trp, enum notification_event ev,
mu_address_to_string (rcpt, NULL, 0, &size);
- buf = xmalloc (size + 1);
+ buf = grecs_malloc (size + 1);
mu_address_to_string (rcpt, buf, size + 1, NULL);
@@ -644,3 +644,3 @@ expand_email_admin (struct metadef *def, void *data)
size++;
- def->storage = xmalloc (size);
+ def->storage = grecs_malloc (size);
mu_address_to_string (admin_address, def->storage, size, NULL);
@@ -672,3 +672,3 @@ expand_email_owner (struct metadef *def, void *data)
size++;
- def->storage = xmalloc (size);
+ def->storage = grecs_malloc (size);
mu_address_to_string (addr, def->storage, size, NULL);

Return to:

Send suggestions and report system problems to the System administrator.