[asterisk-commits] trunk r12961 - /trunk/apps/app_rpt.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Tue Mar 14 12:09:18 MST 2006


Author: russell
Date: Tue Mar 14 13:09:13 2006
New Revision: 12961

URL: http://svn.digium.com/view/asterisk?rev=12961&view=rev
Log:
update to reflect conversion of the accountcode to use stringfields (issue #6722)

Modified:
    trunk/apps/app_rpt.c

Modified: trunk/apps/app_rpt.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_rpt.c?rev=12961&r1=12960&r2=12961&view=diff
==============================================================================
--- trunk/apps/app_rpt.c (original)
+++ trunk/apps/app_rpt.c Tue Mar 14 13:09:13 2006
@@ -2010,7 +2010,7 @@
 	strncpy(mychannel->exten, myrpt->exten, sizeof(mychannel->exten) - 1);
 	strncpy(mychannel->context, myrpt->ourcontext, sizeof(mychannel->context) - 1);
 	if (myrpt->acctcode)
-		strncpy(mychannel->accountcode, myrpt->acctcode, sizeof(mychannel->accountcode) - 1);
+		ast_string_field_set(mychannel, accountcode, myrpt->acctcode);
 	mychannel->priority = 1;
 	ast_channel_undefer_dtmf(mychannel);
 	if (ast_pbx_start(mychannel) < 0)



More information about the asterisk-commits mailing list