Merged revisions 135597 via svnmerge from
authorSean Bright <sean@malleable.com>
Tue, 5 Aug 2008 13:26:34 +0000 (13:26 +0000)
committerSean Bright <sean@malleable.com>
Tue, 5 Aug 2008 13:26:34 +0000 (13:26 +0000)
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: https://origsvn.digium.com/svn/asterisk/trunk@135598 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/cli.c

index af8b923..377e1f0 100644 (file)
@@ -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));