From: schlaile Date: Sat, 14 Jun 2008 18:51:34 +0000 (+0200) Subject: chan_lcr: in lcr_in_information: information.id already contains the X-Git-Url: http://git.eversberg.eu/gitweb.cgi?p=lcr.git;a=commitdiff_plain;h=dcc912f3e4afcbadf441c3c4470f58a1625368f9 chan_lcr: in lcr_in_information: information.id already contains the completely assembled extension, so strncpy is more appropriate :) --- 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; }