aboutsummaryrefslogtreecommitdiffstats
path: root/main/cli.c
diff options
context:
space:
mode:
authorseanbright <seanbright@f38db490-d61c-443f-a65b-d21fe96a405b>2008-08-05 13:27:59 +0000
committerseanbright <seanbright@f38db490-d61c-443f-a65b-d21fe96a405b>2008-08-05 13:27:59 +0000
commit135a4e8017bc0b6d40238ff2384e7f20e6a0a1ea (patch)
treeca0d35fed385733326872faa8c7b8fc5764aba08 /main/cli.c
parente9f94f513f2be73a0b2cbc4660b85df5c6c24718 (diff)
Merged revisions 135598 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ................ r135598 | seanbright | 2008-08-05 09:26:34 -0400 (Tue, 05 Aug 2008) | 9 lines Merged revisions 135597 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r135597 | seanbright | 2008-08-05 09:25:00 -0400 (Tue, 05 Aug 2008) | 1 line Use PATH_MAX for filenames ........ ................ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@135599 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/cli.c')
-rw-r--r--main/cli.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/cli.c b/main/cli.c
index ef8540572..70d26e1c8 100644
--- a/main/cli.c
+++ b/main/cli.c
@@ -122,7 +122,7 @@ static AST_RWLIST_HEAD_STATIC(helpers, ast_cli_entry);
static char *complete_fn(const char *word, int state)
{
char *c, *d;
- char filename[256];
+ char filename[PATH_MAX];
if (word[0] == '/')
ast_copy_string(filename, word, sizeof(filename));