dect
/
asterisk
Archived
13
0
Fork 0

Make the code that prevents an infinite loop from happening into a case insensitive check.

(thanks eliel)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@192736 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
file 2009-05-06 16:09:27 +00:00
parent bdaeb6bf91
commit 7560b5641b
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ static char *cli_alias_passthrough(struct ast_cli_entry *e, int cmd, struct ast_
case CLI_GENERATE:
line = a->line;
line += (strlen(alias->alias));
if (!strncmp(alias->alias, alias->real_cmd, strlen(alias->alias))) {
if (!strncasecmp(alias->alias, alias->real_cmd, strlen(alias->alias))) {
generator = NULL;
} else if (!ast_strlen_zero(a->word)) {
struct ast_str *real_cmd = ast_str_alloca(strlen(alias->real_cmd) + strlen(line) + 1);