Don't use a function call in pri_information

git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@35 2fbb986a-6c06-0410-b554-c9c1f0a7f128
This commit is contained in:
Martin Pycko 2003-03-25 17:02:23 +00:00
parent af1366fcde
commit 426336f4e6

2
q931.c
View File

@ -1496,7 +1496,7 @@ static int information_ies[] = { Q931_CALLED_PARTY_NUMBER, -1 };
int q931_information(struct pri *pri, q931_call *c, char digit)
{
strncpy(c->callednum,&digit,1);
c->callednum[0]=digit;
c->callednum[1]='\0';
return send_message(pri, c, Q931_INFORMATION, information_ies);
}