summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libc/imfs_mknod.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_mknod.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_mknod.c')
-rw-r--r--c/src/lib/libc/imfs_mknod.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/c/src/lib/libc/imfs_mknod.c b/c/src/lib/libc/imfs_mknod.c
index d4feef4f36..c8c05b3a26 100644
--- a/c/src/lib/libc/imfs_mknod.c
+++ b/c/src/lib/libc/imfs_mknod.c
@@ -35,7 +35,7 @@ int IMFS_mknod(
IMFS_token_types type = 0;
IMFS_jnode_t *new_node;
int result;
- char new_name[ NAME_MAX + 1 ];
+ char new_name[ IMFS_NAME_MAX + 1 ];
IMFS_types_union info;
IMFS_get_token( token, new_name, &result );