diff options
author | James Golovich <james@gnuinter.net> | 2004-02-15 05:19:44 +0000 |
---|---|---|
committer | James Golovich <james@gnuinter.net> | 2004-02-15 05:19:44 +0000 |
commit | 4b26ec2372b18c5bce2fcb316435695d55785e5b (patch) | |
tree | f9c954a087556038a9fa257bcc3ae1dfea44409c | |
parent | 2a31c9113698832dd7c35f9fa9b459911aada0cb (diff) |
Fix command completion (bug #988)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2163 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rwxr-xr-x | cli.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -948,7 +948,7 @@ static char *__ast_cli_generator(char *text, char *word, int state, int lock) fullcmd = fullcmd1; e1++; } - if ((fullcmd[0] != '_') && !strncasecmp(matchstr, fullcmd, strlen(matchstr))) { + if ((fullcmd[0] != '_') && !strncasecmp(text, fullcmd, strlen(text))) { /* We contain the first part of one or more commands */ matchnum++; if (matchnum > state) { |