Bugfix
* libproto/mailer/prog.c (_expand_sender): Allocate memory.
Showing
1 changed file
with
3 additions
and
3 deletions
... | @@ -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 | ... | ... |
-
Please register or sign in to post a comment