[svn-commits] tilghman: branch 1.2 r53529 - /branches/1.2/apps/app_voicemail.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Thu Feb 8 06:36:12 MST 2007


Author: tilghman
Date: Thu Feb  8 07:36:10 2007
New Revision: 53529

URL: http://svn.digium.com/view/asterisk?view=rev&rev=53529
Log:
Issue 9003 - If fullname is empty, quote() passes back "\"" 

Modified:
    branches/1.2/apps/app_voicemail.c

Modified: branches/1.2/apps/app_voicemail.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/apps/app_voicemail.c?view=diff&rev=53529&r1=53528&r2=53529
==============================================================================
--- branches/1.2/apps/app_voicemail.c (original)
+++ branches/1.2/apps/app_voicemail.c Thu Feb  8 07:36:10 2007
@@ -1746,7 +1746,7 @@
 					memset(passdata, 0, vmlen);
 					prep_email_sub_vars(ast,vmu,msgnum + 1,context,mailbox,cidnum, cidname,dur,date,passdata, vmlen);
 					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>\n", quote(passdata, passdata2, len_passdata), who);
 				} else ast_log(LOG_WARNING, "Cannot allocate workspace for variable substitution\n");
@@ -1754,7 +1754,7 @@
 			} else ast_log(LOG_WARNING, "Cannot allocate the channel for variables substitution\n");
 		} else
 			fprintf(p, "From: Asterisk PBX <%s>\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>\n", quote(vmu->fullname, passdata2, len_passdata), vmu->email);
 



More information about the svn-commits mailing list