Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Fix devsw_name2blk() to return the correct device n...
details: https://anonhg.NetBSD.org/src/rev/7882d9fe6d58
branches: trunk
changeset: 536414:7882d9fe6d58
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Sun Sep 15 14:29:01 2002 +0000
description:
Fix devsw_name2blk() to return the correct device name for devname arg.
Ok'ed by gehenna.
diffstat:
sys/kern/subr_devsw.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 96a16fd37b4b -r 7882d9fe6d58 sys/kern/subr_devsw.c
--- a/sys/kern/subr_devsw.c Sun Sep 15 11:27:47 2002 +0000
+++ b/sys/kern/subr_devsw.c Sun Sep 15 14:29:01 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: subr_devsw.c,v 1.3 2002/09/11 16:33:03 gehenna Exp $ */
+/* $NetBSD: subr_devsw.c,v 1.4 2002/09/15 14:29:01 tsutsui Exp $ */
/*-
* Copyright (c) 2001,2002 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -393,7 +393,7 @@
if (strlen(conv->d_name) >= devnamelen)
printf("devsw_name2blk: too short buffer");
#endif /* DEVSW_DEBUG */
- strncpy(devname, name, devnamelen);
+ strncpy(devname, conv->d_name, devnamelen);
devname[devnamelen - 1] = '\0';
}
return (bmajor);
Home |
Main Index |
Thread Index |
Old Index