$OpenBSD: patch-src_lfs_c,v 1.4 2007/05/10 20:23:29 pedro Exp $
--- src/lfs.c.orig	Thu May 10 10:12:15 2007
+++ src/lfs.c	Thu May 10 10:13:50 2007
@@ -32,7 +32,7 @@
 #include <unistd.h>
 #include <dirent.h>
 #include <fcntl.h>
-#include <sys/types.h>
+#include <sys/param.h>
 #include <utime.h>
 #endif
 
@@ -89,8 +89,8 @@ static int change_dir (lua_State *L) {
 **  and a string describing the error
 */
 static int get_dir (lua_State *L) {
-	char path[255+2];
-	if (getcwd(path, 255) == NULL) {
+	char path[MAXPATHLEN];
+	if (getcwd(path, sizeof(path)) == NULL) {
 		lua_pushnil(L);
 		lua_pushstring(L, getcwd_error);
 		return 2;
