diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2009-10-09 04:25:35 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2009-10-09 04:25:35 +0000 |
commit | df43751da9dc2ab7ac34da77ddd1fa9ba58a284b (patch) | |
tree | 032952f97adf138c1c194920f2f0530f40382176 /sys/arch | |
parent | 7d5809f42dabac5dd3120a39eeee3c03fd8b671d (diff) |
initialize the disk size instead of getting a random value (always 0) off
the stack. this lets disklabels work on non-sgivol disks.
ok miod
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/sgi/sgi/disksubr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/sgi/sgi/disksubr.c b/sys/arch/sgi/sgi/disksubr.c index d0571d2176b..8d98bca0506 100644 --- a/sys/arch/sgi/sgi/disksubr.c +++ b/sys/arch/sgi/sgi/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.17 2009/08/13 15:23:11 deraadt Exp $ */ +/* $OpenBSD: disksubr.c,v 1.18 2009/10/09 04:25:34 deraadt Exp $ */ /* * Copyright (c) 1999 Michael Shalayeff @@ -113,8 +113,8 @@ readsgilabel(struct buf *bp, void (*strat)(struct buf *), { struct sgilabel *dlp; int i, *p, cs = 0; - int fsoffs = 0; - u_int fsend; + u_int64_t fsoffs = 0; + u_int64_t fsend = DL_GETBEND(lp); int offset; bp->b_blkno = 0; |