summaryrefslogtreecommitdiffstats
path: root/lib/libdisk
diff options
context:
space:
mode:
authorjlemon <jlemon@FreeBSD.org>2000-03-09 15:05:20 +0000
committerjlemon <jlemon@FreeBSD.org>2000-03-09 15:05:20 +0000
commitaf76e7b9bcaf7ae8ca96282b53656faf8bb99dfa (patch)
treebcaf03daa2ea0f36cca23057cc12131a5508182a /lib/libdisk
parent23a1d7aeede4493a8349d528992687a9a1974f0d (diff)
downloadFreeBSD-src-af76e7b9bcaf7ae8ca96282b53656faf8bb99dfa.zip
FreeBSD-src-af76e7b9bcaf7ae8ca96282b53656faf8bb99dfa.tar.gz
Fix pointer addition bug (3 -> 4).
Submitted by: david.w.james@bt.com
Diffstat (limited to 'lib/libdisk')
-rw-r--r--lib/libdisk/create_chunk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libdisk/create_chunk.c b/lib/libdisk/create_chunk.c
index a1e1a7e..04e2a55 100644
--- a/lib/libdisk/create_chunk.c
+++ b/lib/libdisk/create_chunk.c
@@ -268,7 +268,7 @@ MakeDev(struct chunk *c1, const char *path)
else if (!strncmp(p, "fla", 3))
cmaj = 102, p += 3;
else if (!strncmp(p, "idad", 4))
- cmaj = 109, p += 3;
+ cmaj = 109, p += 4;
else if (!strncmp(p, "mlxd", 4))
cmaj = 131, p += 4;
else if (!strncmp(p, "amrd", 4))
OpenPOWER on IntegriCloud