summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/app_voicemail.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c
index d38978b22..4f617e1c4 100644
--- a/apps/app_voicemail.c
+++ b/apps/app_voicemail.c
@@ -4483,7 +4483,7 @@ static void make_email_file(FILE *p, char *srcemail, struct ast_vm_user *vmu, in
#ifdef IMAP_STORAGE
{
/* Convert body to native line terminators for IMAP backend */
- char *line = passdata, *next;
+ char *line = ast_str_buffer(str1), *next;
do {
/* Terminate line before outputting it to the file */
if ((next = strchr(line, '\n'))) {