From 9dc4db04d2906ed5483ac5f6c4c9be3309f875a0 Mon Sep 17 00:00:00 2001 From: stan Date: Mon, 31 Jan 2005 12:08:20 +0000 Subject: [PATCH] Added line length to fgets git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1269 e3e1d417-86f3-4887-817a-d78f3d33393f --- web/zm_config.php.z | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/zm_config.php.z b/web/zm_config.php.z index 81b994e24..5333fb464 100644 --- a/web/zm_config.php.z +++ b/web/zm_config.php.z @@ -29,7 +29,7 @@ define( "ZM_PATH_CGI", "" ); // Path to cgi files $cfg = fopen( ZM_CONFIG, "r") or die("Could not open config file."); while ( !feof($cfg) ) { - $str = fgets( $cfg ); + $str = fgets( $cfg, 256 ); if ( preg_match( '/^\s*$/', $str )) { continue; } elseif ( preg_match( '/^\s*#/', $str )) { continue; } elseif ( preg_match( '/^\s*([^=\s]+)\s*=\s*([^=\s]+)\s*$/', $str, $matches ))