diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1999-02-24 20:58:47 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1999-02-24 20:58:47 +0000 |
commit | 3cf8394af5f646642df593c8de833441e186af64 (patch) | |
tree | 879804337835a352853d5eb06d31565d4dba33d7 /c/src/lib/libc/imfs_creat.c | |
parent | Moved mpc860.h around to make things compile. (diff) | |
download | rtems-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_creat.c')
-rw-r--r-- | c/src/lib/libc/imfs_creat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/c/src/lib/libc/imfs_creat.c b/c/src/lib/libc/imfs_creat.c index fd38e7f993..6b638ed07c 100644 --- a/c/src/lib/libc/imfs_creat.c +++ b/c/src/lib/libc/imfs_creat.c @@ -51,7 +51,7 @@ IMFS_jnode_t *IMFS_create_node( node->st_nlink = 1; node->type = type; - strncpy( node->name, name, NAME_MAX ); + strncpy( node->name, name, IMFS_NAME_MAX ); /* * Fill in the mode and permission information for the jnode structure. |