[svn-commits] seanbright: branch 1.4 r135597 - /branches/1.4/main/cli.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue Aug 5 08:25:00 CDT 2008


Author: seanbright
Date: Tue Aug  5 08:25:00 2008
New Revision: 135597

URL: http://svn.digium.com/view/asterisk?view=rev&rev=135597
Log:
Use PATH_MAX for filenames

Modified:
    branches/1.4/main/cli.c

Modified: branches/1.4/main/cli.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/main/cli.c?view=diff&rev=135597&r1=135596&r2=135597
==============================================================================
--- branches/1.4/main/cli.c (original)
+++ branches/1.4/main/cli.c Tue Aug  5 08:25:00 2008
@@ -1249,7 +1249,7 @@
 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_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;




More information about the svn-commits mailing list