Thomas Woerner b6b9a6
--- acl-2.2.39/setfacl/parse.c.path_max	2006-06-20 02:51:25.000000000 -0400
Thomas Woerner b6b9a6
+++ acl-2.2.39/setfacl/parse.c	2006-07-05 15:27:21.000000000 -0400
Thomas Woerner b6b9a6
@@ -24,6 +24,7 @@
Thomas Woerner b6b9a6
 #include <stdlib.h>
Thomas Woerner b6b9a6
 #include <string.h>
Thomas Woerner b6b9a6
 #include <errno.h>
Thomas Woerner b6b9a6
+#include <limits.h>
Thomas Woerner b6b9a6
 
Thomas Woerner b6b9a6
 #include <sys/types.h>
Thomas Woerner b6b9a6
 #include <sys/stat.h>
Thomas Woerner b6b9a6
@@ -412,7 +413,12 @@
Thomas Woerner b6b9a6
 	gid_t *gid_p)
Thomas Woerner b6b9a6
 {
Thomas Woerner b6b9a6
 	int c;
Thomas Woerner b6b9a6
-	char linebuf[1024];
Thomas Woerner b6b9a6
+	/*
Jiří Moskovčák d9e7c2
+	  Max PATH_MAX bytes even for UTF-8 path names and additional 9 
Jiří Moskovčák d9e7c2
+	  bytes for "# file: ".Not a good solution but for now it is the 
Thomas Woerner b6b9a6
+	  best I can do without too much impact on the code. [tw]
Thomas Woerner b6b9a6
+	*/
Jiří Moskovčák d9e7c2
+	char linebuf[(4*PATH_MAX)+9];
Thomas Woerner b6b9a6
 	char *cp;
Thomas Woerner b6b9a6
 	char *p;
Thomas Woerner b6b9a6
 	int comments_read = 0;