summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libc/imfs_eval.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1999-02-24 20:58:47 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1999-02-24 20:58:47 +0000
commit3cf8394af5f646642df593c8de833441e186af64 (patch)
tree879804337835a352853d5eb06d31565d4dba33d7 /c/src/lib/libc/imfs_eval.c
parentMoved mpc860.h around to make things compile. (diff)
downloadrtems-3cf8394af5f646642df593c8de833441e186af64.tar.bz2
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.
Diffstat (limited to 'c/src/lib/libc/imfs_eval.c')
-rw-r--r--c/src/lib/libc/imfs_eval.c4
1 files changed, 2 insertions, 2 deletions
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;