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_eval.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'c/src/lib/libc/imfs_eval.c') diff --git a/c/src/lib/libc/imfs_eval.c b/c/src/lib/libc/imfs_eval.c index d6d444f6d2..e7e2d47908 100644 --- a/c/src/lib/libc/imfs_eval.c +++ b/c/src/lib/libc/imfs_eval.c @@ -277,7 +277,7 @@ int IMFS_evaluate_for_make( int i = 0; int len; IMFS_token_types type; - char token[ NAME_MAX + 1 ]; + char token[ IMFS_NAME_MAX + 1 ]; rtems_filesystem_location_info_t newloc; IMFS_jnode_t *node; int done = 0; @@ -467,7 +467,7 @@ int IMFS_eval_path( int i = 0; int len; IMFS_token_types type = IMFS_CURRENT_DIR; - char token[ NAME_MAX + 1 ]; + char token[ IMFS_NAME_MAX + 1 ]; rtems_filesystem_location_info_t newloc; IMFS_jnode_t *node; int result; -- cgit v1.2.3