diff options
author | Mark Spencer <markster@digium.com> | 2001-10-18 16:47:57 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2001-10-18 16:47:57 +0000 |
commit | a07f2c930bef91db5f14f214183775ec1898f6de (patch) | |
tree | e6f64a0d6ef32dc8598367c752db154a16cf3a4b /cli.c | |
parent | 39b383b3539d563cbd8f607e5e5d4014e5de6879 (diff) |
Version 0.1.10 from FTP
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@376 65c4cc65-6c06-0410-ace0-fbb531ad65f3
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); |