From dcc912f3e4afcbadf441c3c4470f58a1625368f9 Mon Sep 17 00:00:00 2001 From: schlaile Date: Sat, 14 Jun 2008 20:51:34 +0200 Subject: [PATCH] chan_lcr: in lcr_in_information: information.id already contains the completely assembled extension, so strncpy is more appropriate :) --- chan_lcr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.13.6