[asterisk-commits] mnicholson: branch mnicholson/asttest r170387 - in /team/mnicholson/asttest/a...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Jan 22 22:05:59 CST 2009


Author: mnicholson
Date: Thu Jan 22 22:05:59 2009
New Revision: 170387

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=170387
Log:
Use PATH_MAX insted of 1024 for stack allocated arrays.

Modified:
    team/mnicholson/asttest/asttest/asttest.c
    team/mnicholson/asttest/asttest/lib/testsuite.c

Modified: team/mnicholson/asttest/asttest/asttest.c
URL: http://svn.digium.com/svn-view/asterisk/team/mnicholson/asttest/asttest/asttest.c?view=diff&rev=170387&r1=170386&r2=170387
==============================================================================
--- team/mnicholson/asttest/asttest/asttest.c (original)
+++ team/mnicholson/asttest/asttest/asttest.c Thu Jan 22 22:05:59 2009
@@ -248,7 +248,7 @@
 
 int process_test_dir(const char *path, struct asttest_opts *opts) {
 	DIR *main_dir = opendir(path);
-	char full_path[1024];
+	char full_path[PATH_MAX];
 	struct testsuite ts;
 	struct dirent *ent;
 	enum ts_result result;

Modified: team/mnicholson/asttest/asttest/lib/testsuite.c
URL: http://svn.digium.com/svn-view/asterisk/team/mnicholson/asttest/asttest/lib/testsuite.c?view=diff&rev=170387&r1=170386&r2=170387
==============================================================================
--- team/mnicholson/asttest/asttest/lib/testsuite.c (original)
+++ team/mnicholson/asttest/asttest/lib/testsuite.c Thu Jan 22 22:05:59 2009
@@ -26,7 +26,7 @@
 #include "asttest/testsuite.h"
 
 int ts_init(struct testsuite *ts, const char *path, struct asttest_opts *opts) {
-	char log_path[1024];
+	char log_path[PATH_MAX];
 	
 	memset(ts, 0, sizeof(struct testsuite));
 	




More information about the asterisk-commits mailing list