diff options
author | citats <citats@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-02-15 05:19:44 +0000 |
---|---|---|
committer | citats <citats@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-02-15 05:19:44 +0000 |
commit | d6bc7030a953c3de65ee58c04839639167b5fe64 (patch) | |
tree | f9c954a087556038a9fa257bcc3ae1dfea44409c /cli.c | |
parent | 9522b33e8839a4e64c8098961df656750ba92c2e (diff) |
Fix command completion (bug #988)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2163 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'cli.c')
-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) { |