]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
update to reflect conversion of the accountcode to use stringfields (issue #6722)
authorRussell Bryant <russell@russellbryant.com>
Tue, 14 Mar 2006 19:09:13 +0000 (19:09 +0000)
committerRussell Bryant <russell@russellbryant.com>
Tue, 14 Mar 2006 19:09:13 +0000 (19:09 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@12961 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_rpt.c

index 05abdf0950545566f02b6ef386763ad8a7b0f5c0..24569daf5370ee9a57ee88665e945857bd11bbe8 100644 (file)
@@ -2010,7 +2010,7 @@ struct ast_channel *mychannel,*genchannel;
        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)