mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 11:25:35 +00:00
Version 0.1.10 from FTP
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@376 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
2
cli.c
2
cli.c
@@ -325,7 +325,7 @@ static char *complete_fn(char *line, char *word, int pos, int state)
|
||||
if (pos != 1)
|
||||
return NULL;
|
||||
if (word[0] == '/')
|
||||
strncpy(filename, word, sizeof(filename));
|
||||
strncpy(filename, word, sizeof(filename)-1);
|
||||
else
|
||||
snprintf(filename, sizeof(filename), "%s/%s", AST_MODULE_DIR, word);
|
||||
c = (char*)filename_completion_function(filename, state);
|
||||
|
Reference in New Issue
Block a user