summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2008-04-07 23:10:25 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2008-04-07 23:10:25 +0000
commitc983911e5c8389daf0e6222dc91d70b57fffb2fd (patch)
treead6800017f040bfe04a92db99e48e2784c0239ee
parent8a4a4d505beb22d5cd8cae09059aa84ac8541c08 (diff)
Compare device names consistantly in parsedisk().
ok deraadt@
-rw-r--r--sys/kern/subr_disk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/subr_disk.c b/sys/kern/subr_disk.c
index a7647c7e2b1..1b2879c5386 100644
--- a/sys/kern/subr_disk.c
+++ b/sys/kern/subr_disk.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: subr_disk.c,v 1.72 2008/03/31 23:56:29 deraadt Exp $ */
+/* $OpenBSD: subr_disk.c,v 1.73 2008/04/07 23:10:24 krw Exp $ */
/* $NetBSD: subr_disk.c,v 1.17 1996/03/16 23:17:08 christos Exp $ */
/*
@@ -1025,7 +1025,7 @@ parsedisk(char *str, int len, int defpart, dev_t *devp)
part = defpart;
#ifdef RAMDISK_HOOKS
- if (strcmp(str, fakerdrootdev.dv_xname) == 0) {
+ if (strncmp(str, fakerdrootdev.dv_xname, len) == 0) {
dv = &fakerdrootdev;
goto gotdisk;
}