summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorschlaile2008-06-14 20:51:34 +0200
committerroot2008-06-14 20:51:34 +0200
commitdcc912f3e4afcbadf441c3c4470f58a1625368f9 (patch)
tree2ebb9ce830e8f56220b6a7ec5c5fa181f180d540
parentmade callerid handling work in call from asterisk (diff)
downloadlcr-dcc912f3e4afcbadf441c3c4470f58a1625368f9.tar.gz
lcr-dcc912f3e4afcbadf441c3c4470f58a1625368f9.tar.xz
lcr-dcc912f3e4afcbadf441c3c4470f58a1625368f9.zip
chan_lcr: in lcr_in_information: information.id already contains the
completely assembled extension, so strncpy is more appropriate :)
-rw-r--r--chan_lcr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/chan_lcr.c b/chan_lcr.c
index 3e89585..25043ed 100644
--- a/chan_lcr.c
+++ b/chan_lcr.c
@@ -958,7 +958,7 @@ static void lcr_in_information(struct chan_call *call, int message_type, union p
if (!call->pbx_started)
{
CDEBUG(call, call->ast, "Asterisk not started, adding digits to number.\n");
- strncat(ast->exten, param->information.id, AST_MAX_EXTENSION-1);
+ strncpy(ast->exten, param->information.id, AST_MAX_EXTENSION-1);
lcr_start_pbx(call, ast, param->information.sending_complete);
return;
}