diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2001-10-18 16:47:57 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2001-10-18 16:47:57 +0000 |
commit | 3b0ed1ec21c33db5533265e3f0339074324e2817 (patch) | |
tree | e6f64a0d6ef32dc8598367c752db154a16cf3a4b /cli.c | |
parent | 45ac69512b3210e5e4bd6e0b5c66d615f7b47c4e (diff) |
Version 0.1.10 from FTP
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@376 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'cli.c')
-rwxr-xr-x | cli.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |