chan_lcr: in lcr_in_information: information.id already contains the
authorschlaile <root@asterisk.schlaile.de>
Sat, 14 Jun 2008 18:51:34 +0000 (20:51 +0200)
committerroot <root@asterisk.schlaile.de>
Sat, 14 Jun 2008 18:51:34 +0000 (20:51 +0200)
completely assembled extension, so strncpy is more appropriate :)

chan_lcr.c

index 3e89585..25043ed 100644 (file)
@@ -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");
        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;
        }
                lcr_start_pbx(call, ast, param->information.sending_complete);
                return;
        }