From 3cf8394af5f646642df593c8de833441e186af64 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 24 Feb 1999 20:58:47 +0000 Subject: Changed IMFS to use IMFS_NAME_MAX as the maximum length of a basename rather then NAME_MAX. NAME_MAX is 255 and that lets IMFS chew up memory too fast. Perhaps in the future, the places in IMFS that put a maximum length name string on the stack and the jnode structure does not include a maximu length name string can be fixed so this is not a problem. --- c/src/lib/libc/imfs_link.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'c/src/lib/libc/imfs_link.c') diff --git a/c/src/lib/libc/imfs_link.c b/c/src/lib/libc/imfs_link.c index 2232209705..34d277646d 100644 --- a/c/src/lib/libc/imfs_link.c +++ b/c/src/lib/libc/imfs_link.c @@ -28,7 +28,7 @@ int IMFS_link( { IMFS_types_union info; IMFS_jnode_t *new_node; - char new_name[ NAME_MAX + 1 ]; + char new_name[ IMFS_NAME_MAX + 1 ]; int i; /* -- cgit v1.2.3