projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6394388
)
Hopefully last fix to remote cli completion
author
James Golovich
<james@gnuinter.net>
Fri, 9 Apr 2004 17:46:04 +0000
(17:46 +0000)
committer
James Golovich
<james@gnuinter.net>
Fri, 9 Apr 2004 17:46:04 +0000
(17:46 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2669
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
asterisk.c
patch
|
blob
|
history
diff --git
a/asterisk.c
b/asterisk.c
index
a003093
..
bc743be
100755
(executable)
--- a/
asterisk.c
+++ b/
asterisk.c
@@
-1102,6
+1102,7
@@
static char *cli_complete(EditLine *el, int ch)
snprintf(buf, sizeof(buf),"_COMMAND MATCHESARRAY \"%s\" \"%s\"", lf->buffer, ptr);
fdprint(ast_consock, buf);
res = 0;
+ mbuf[0] = '\0';
while (!strstr(mbuf, AST_CLI_COMPLETE_EOF) && res != -1) {
if (mlen + 1024 > maxmbuf) {
/* Every step increment buffer 1024 bytes */