Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/makefs d_namlen is a uint8_t, and thus will always ...
details: https://anonhg.NetBSD.org/src/rev/ff7229100d67
branches: trunk
changeset: 532016:ff7229100d67
user: thorpej <thorpej%NetBSD.org@localhost>
date: Thu May 30 18:16:41 2002 +0000
description:
d_namlen is a uint8_t, and thus will always be < MAXMANLEN + 1 (256),
so there is no need to assert it.
diffstat:
usr.sbin/makefs/ffs.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diffs (26 lines):
diff -r 06c38ac1bbb9 -r ff7229100d67 usr.sbin/makefs/ffs.c
--- a/usr.sbin/makefs/ffs.c Thu May 30 18:10:25 2002 +0000
+++ b/usr.sbin/makefs/ffs.c Thu May 30 18:16:41 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ffs.c,v 1.14 2002/02/15 04:04:57 lukem Exp $ */
+/* $NetBSD: ffs.c,v 1.15 2002/05/30 18:16:41 thorpej Exp $ */
/*
* Copyright (c) 2001 Wasabi Systems, Inc.
@@ -71,7 +71,7 @@
#include <sys/cdefs.h>
#if defined(__RCSID) && !defined(__lint)
-__RCSID("$NetBSD: ffs.c,v 1.14 2002/02/15 04:04:57 lukem Exp $");
+__RCSID("$NetBSD: ffs.c,v 1.15 2002/05/30 18:16:41 thorpej Exp $");
#endif /* !__lint */
#include <sys/param.h>
@@ -860,7 +860,6 @@
de.d_ino = ufs_rw32(node->inode->ino, needswap);
de.d_type = IFTODT(node->type);
de.d_namlen = (uint8_t)strlen(name);
- assert (de.d_namlen < (sizeof(de.d_name)));
strcpy(de.d_name, name);
reclen = DIRSIZ(0, &de, needswap);
de.d_reclen = ufs_rw16(reclen, needswap);
Home |
Main Index |
Thread Index |
Old Index