Replaced SYS_MAX_PATH_LEN with B_PATH_NAME_LENGTH.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10432 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2004-12-13 22:19:26 +00:00
parent 204db7744a
commit b2ac251743
1 changed files with 2 additions and 2 deletions

View File

@ -339,13 +339,13 @@ bootfs_create_vnode_tree(struct bootfs *fs, struct bootfs_vnode *root)
boot_entry *entry;
struct bootfs_vnode *new_vnode;
struct bootfs_vnode *dir;
char path[SYS_MAX_PATH_LEN];
char path[B_PATH_NAME_LENGTH];
char *leaf;
entry = (boot_entry *)bootdir;
for (i = 0; i < BOOTDIR_MAX_ENTRIES; i++) {
if (entry[i].be_type != BE_TYPE_NONE && entry[i].be_type != BE_TYPE_DIRECTORY) {
strlcpy(path, entry[i].be_name, SYS_MAX_PATH_LEN);
strlcpy(path, entry[i].be_name, sizeof(path));
dir = bootfs_create_path(fs, path, root, &leaf);
if (!dir)