Commit c1851318 c1851318b12fd5a77c6a2c30e7801f5faa9941b7 by Sergey Poznyakoff

Bugfix

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