Commit c1851318 c1851318b12fd5a77c6a2c30e7801f5faa9941b7 by Sergey Poznyakoff

Bugfix

* libproto/mailer/prog.c (_expand_sender): Allocate memory.
1 parent fad4a6d9
......@@ -138,12 +138,12 @@ static int
_expand_sender (const char *name, void *data, char **p)
{
mu_address_t addr = data;
const char *email;
int status = mu_address_sget_email (addr, 1, &email);
char *email;
int status = mu_address_aget_email (addr, 1, &email);
if (status != 0)
return status;
*(const char**)p = email;
*p = email;
return 0;
}
......