--- src/file-io.c.orig	Thu Jan 10 12:51:15 2002
+++ src/file-io.c	Sat Jun 28 12:38:16 2003
@@ -24,6 +24,7 @@
 
 #include <unistd.h>
 #include <sys/types.h>
+#include <sys/param.h>
 
 #include "declarations.h"
 #include "file-io.h"
@@ -102,10 +103,10 @@
 new_file_real (char *filename)
 {
     GnomeVFSURI *uri;
-    gchar cwd[256];
+    gchar cwd[MAXPATHLEN];
     gchar *full;
 
-    getcwd (cwd, 256);
+    getcwd (cwd, sizeof(cwd));
     full = g_strconcat (cwd, "/", filename, NULL);
     uri = gnome_vfs_uri_new (full);
     g_free (full);
