From 0fa63ffb6f71733371ebcfc1dcef3803b20d5a6f Mon Sep 17 00:00:00 2001 From: Sean Bright Date: Tue, 5 Aug 2008 13:25:00 +0000 Subject: [PATCH] Use PATH_MAX for filenames git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@135597 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- main/cli.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/cli.c b/main/cli.c index 36f20a511b..e685268d74 100644 --- a/main/cli.c +++ b/main/cli.c @@ -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;