$OpenBSD: patch-diskfile_cpp,v 1.1.1.1 2004/01/23 05:20:48 jolan Exp $
--- diskfile.cpp.orig	2003-05-26 13:01:14.000000000 -0500
+++ diskfile.cpp	2004-01-19 02:04:20.000000000 -0600
@@ -17,6 +17,8 @@
 //  along with this program; if not, write to the Free Software
 //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
+#include <sys/param.h>
+
 #include "par2cmdline.h"
 
 #ifdef _MSC_VER
@@ -550,7 +552,7 @@ string DiskFile::GetCanonicalPathname(st
     return filename;
 
   // Get the current directory
-  char curdir[1000];
+  char curdir[MAXPATHLEN];
   if (0 == getcwd(curdir, sizeof(curdir)))
   {
     return filename;
