Use FFS_MAXNAMLEN instead of MAXNAMLEN.
This commit is contained in:
parent
565285f75f
commit
1dbccd015b
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: utilities.c,v 1.51 2005/08/19 02:07:19 christos Exp $ */
|
||||
/* $NetBSD: utilities.c,v 1.52 2005/08/23 11:10:23 tron Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1980, 1986, 1993
|
||||
|
@ -34,7 +34,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)utilities.c 8.6 (Berkeley) 5/19/95";
|
||||
#else
|
||||
__RCSID("$NetBSD: utilities.c,v 1.51 2005/08/19 02:07:19 christos Exp $");
|
||||
__RCSID("$NetBSD: utilities.c,v 1.52 2005/08/23 11:10:23 tron Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -482,7 +482,7 @@ getpathname(char *namebuf, size_t namebuflen, ino_t curdir, ino_t ino)
|
|||
cp -= len;
|
||||
memmove(cp, namebuf, (size_t)len);
|
||||
*--cp = '/';
|
||||
if (cp < &namebuf[MAXNAMLEN])
|
||||
if (cp < &namebuf[FFS_MAXNAMLEN])
|
||||
break;
|
||||
ino = idesc.id_number;
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: mkfs.c,v 1.90 2005/08/19 02:07:19 christos Exp $ */
|
||||
/* $NetBSD: mkfs.c,v 1.91 2005/08/23 11:18:30 tron Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1980, 1989, 1993
|
||||
|
@ -73,7 +73,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)mkfs.c 8.11 (Berkeley) 5/3/95";
|
||||
#else
|
||||
__RCSID("$NetBSD: mkfs.c,v 1.90 2005/08/19 02:07:19 christos Exp $");
|
||||
__RCSID("$NetBSD: mkfs.c,v 1.91 2005/08/23 11:18:30 tron Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -947,7 +947,7 @@ struct odirect {
|
|||
u_int32_t d_ino;
|
||||
u_int16_t d_reclen;
|
||||
u_int16_t d_namlen;
|
||||
u_char d_name[MAXNAMLEN + 1];
|
||||
u_char d_name[FFS_MAXNAMLEN + 1];
|
||||
} oroot_dir[] = {
|
||||
{ ROOTINO, sizeof(struct direct), 1, "." },
|
||||
{ ROOTINO, sizeof(struct direct), 2, ".." },
|
||||
|
|
Loading…
Reference in New Issue