[svn-commits] tilghman: trunk r53531 - in /trunk: ./
apps/app_voicemail.c
svn-commits at lists.digium.com
svn-commits at lists.digium.com
Thu Feb 8 06:43:07 MST 2007
Author: tilghman
Date: Thu Feb 8 07:43:06 2007
New Revision: 53531
URL: http://svn.digium.com/view/asterisk?view=rev&rev=53531
Log:
Merged revisions 53530 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
................
r53530 | tilghman | 2007-02-08 07:40:02 -0600 (Thu, 08 Feb 2007) | 10 lines
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:
trunk/ (props changed)
trunk/apps/app_voicemail.c
Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.
Modified: trunk/apps/app_voicemail.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_voicemail.c?view=diff&rev=53531&r1=53530&r2=53531
==============================================================================
--- trunk/apps/app_voicemail.c (original)
+++ trunk/apps/app_voicemail.c Thu Feb 8 07:43:06 2007
@@ -1883,7 +1883,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
@@ -1893,7 +1893,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 svn-commits
mailing list