From b2ac251743addbe117c2fddbe8131eec05f4fdaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Mon, 13 Dec 2004 22:19:26 +0000 Subject: [PATCH] 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 --- src/kernel/core/fs/bootfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/kernel/core/fs/bootfs.c b/src/kernel/core/fs/bootfs.c index 52c7fed9ad..1ba6bcf718 100755 --- a/src/kernel/core/fs/bootfs.c +++ b/src/kernel/core/fs/bootfs.c @@ -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)