From: Russell Bryant Date: Thu, 18 Nov 2004 04:16:47 +0000 (+0000) Subject: fix tab completion issue (bug #988) X-Git-Tag: 1.0.11.1~375 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=77ad56814446af37cf083d039a44d729a8250c18;p=thirdparty%2Fasterisk.git fix tab completion issue (bug #988) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@4288 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/cli.c b/cli.c index 7b32ec5664..b510ddb146 100755 --- a/cli.c +++ b/cli.c @@ -1040,7 +1040,7 @@ char **ast_cli_completion_matches(char *text, char *word) prevstr = match_list[1]; max_equal = strlen(prevstr); for (; which <= matches; which++) { - for (i = 0; i < max_equal && prevstr[i] == match_list[which][i]; i++) + for (i = 0; i < max_equal && toupper(prevstr[i]) == toupper(match_list[which][i]); i++) continue; max_equal = i; }