]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Use PATH_MAX for filenames
authorSean Bright <sean@malleable.com>
Tue, 5 Aug 2008 13:25:00 +0000 (13:25 +0000)
committerSean Bright <sean@malleable.com>
Tue, 5 Aug 2008 13:25:00 +0000 (13:25 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@135597 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/cli.c

index 36f20a511bd140d7b39793664950194a26028129..e685268d74cf9055e9cf7f045c2795aa55ac8b87 100644 (file)
@@ -1249,7 +1249,7 @@ static char *complete_mod_4(const char *line, const char *word, int pos, int sta
 static char *complete_fn_2(const char *line, const char *word, int pos, int state)
 {
        char *c, *d;
-       char filename[256];
+       char filename[PATH_MAX];
 
        if (pos != 1)
                return NULL;
@@ -1273,7 +1273,7 @@ static char *complete_fn_2(const char *line, const char *word, int pos, int stat
 static char *complete_fn_3(const char *line, const char *word, int pos, int state)
 {
        char *c, *d;
-       char filename[256];
+       char filename[PATH_MAX];
 
        if (pos != 2)
                return NULL;