summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2016-01-28 18:12:52 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2016-01-28 18:12:52 +0000
commite85fea07abb15946d3a606180900ae1e10e0e04b (patch)
treeadfafd85586de509b84e581153ea5c8c1e8b5d2d
parent0638a573e3ca1265a97716124fd01955fc277018 (diff)
Oops. Deleted one too many lines. Need to advance pointer when traversing
list.
-rw-r--r--sbin/pdisk/partition_map.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/pdisk/partition_map.c b/sbin/pdisk/partition_map.c
index a9e0239634b..a812bc3b4b5 100644
--- a/sbin/pdisk/partition_map.c
+++ b/sbin/pdisk/partition_map.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: partition_map.c,v 1.76 2016/01/28 17:17:57 krw Exp $ */
+/* $OpenBSD: partition_map.c,v 1.77 2016/01/28 18:12:51 krw Exp $ */
/*
* partition_map.c - partition map routines
@@ -389,6 +389,7 @@ add_partition_to_map(const char *name, const char *dptype, uint32_t base,
(base + length) <=
(cur->dpme->dpme_pblock_start + cur->dpme->dpme_pblocks))
break;
+ cur = cur->next_by_base;
}
/* if it is not Extra then punt */
if (cur == NULL ||