[asterisk-commits] tilghman: branch 1.4 r53530 - in /branches/1.4:
./ apps/app_voicemail.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Thu Feb 8 06:40:03 MST 2007
Author: tilghman
Date: Thu Feb 8 07:40:02 2007
New Revision: 53530
URL: http://svn.digium.com/view/asterisk?view=rev&rev=53530
Log:
Merged revisions 53529 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r53529 | tilghman | 2007-02-08 07:36:10 -0600 (Thu, 08 Feb 2007) | 2 lines
Issue 9003 - If fullname is empty, quote() passes back "\""
........
Modified:
branches/1.4/ (props changed)
branches/1.4/apps/app_voicemail.c
Propchange: branches/1.4/
------------------------------------------------------------------------------
Binary property 'branch-1.2-merged' - no diff available.
Modified: branches/1.4/apps/app_voicemail.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/apps/app_voicemail.c?view=diff&rev=53530&r1=53529&r2=53530
==============================================================================
--- branches/1.4/apps/app_voicemail.c (original)
+++ branches/1.4/apps/app_voicemail.c Thu Feb 8 07:40:02 2007
@@ -1859,7 +1859,7 @@
memset(passdata, 0, vmlen);
prep_email_sub_vars(ast, vmu, msgnum + 1, context, mailbox, cidnum, cidname, dur, date, passdata, vmlen, category);
pbx_substitute_variables_helper(ast, fromstring, passdata, vmlen);
- len_passdata = strlen(passdata) * 2 + 1;
+ len_passdata = strlen(passdata) * 2 + 3;
passdata2 = alloca(len_passdata);
fprintf(p, "From: %s <%s>\r\n", quote(passdata, passdata2, len_passdata), who);
} else
@@ -1869,7 +1869,7 @@
ast_log(LOG_WARNING, "Cannot allocate the channel for variables substitution\n");
} else
fprintf(p, "From: Asterisk PBX <%s>\r\n", who);
- len_passdata = strlen(vmu->fullname) * 2 + 1;
+ len_passdata = strlen(vmu->fullname) * 2 + 3;
passdata2 = alloca(len_passdata);
fprintf(p, "To: %s <%s>\r\n", quote(vmu->fullname, passdata2, len_passdata), vmu->email);
if (emailsubject) {
More information about the asterisk-commits
mailing list