Use PATH_MAX for filenames

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@135597 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Sean Bright
2008-08-05 13:25:00 +00:00
parent c981603ce4
commit 0fa63ffb6f

View 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) static char *complete_fn_2(const char *line, const char *word, int pos, int state)
{ {
char *c, *d; char *c, *d;
char filename[256]; char filename[PATH_MAX];
if (pos != 1) if (pos != 1)
return NULL; 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) static char *complete_fn_3(const char *line, const char *word, int pos, int state)
{ {
char *c, *d; char *c, *d;
char filename[256]; char filename[PATH_MAX];
if (pos != 2) if (pos != 2)
return NULL; return NULL;