mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 20:20:07 +00:00
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:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user