Put a buffer size of 1024 (the default value) into the call to fgets so
tree7e9585fe2e952d3d064b755e367aea90a3dd2003
-rw-r--r-- 645 AdminSettings.sample
-rw-r--r-- 8566 INSTALL
-rw-r--r-- 1963 LocalSettings.sample
-rw-r--r-- 1910 README
-rw-r--r-- 451 Version.php
drwxr-xr-x - docs
drwxr-xr-x - images
drwxr-xr-x - includes
-rw-r--r-- 7900 install.php
drwxr-xr-x - languages
drwxr-xr-x - maintenance
drwxr-xr-x - math
drwxr-xr-x - rdf
-rw-r--r-- 168 redirect.phtml
drwxr-xr-x - stylesheets
drwxr-xr-x - testsuite
-rw-r--r-- 4951 texvc.phtml
-rw-r--r-- 3532 update.php
-rw-r--r-- 2172 wiki.phtml