Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/installboot/arch Fix botch in previous revision. So...
details: https://anonhg.NetBSD.org/src/rev/26e25293f296
branches: trunk
changeset: 761927:26e25293f296
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Thu Feb 10 23:25:11 2011 +0000
description:
Fix botch in previous revision. Sorry for a stupid change.
diffstat:
usr.sbin/installboot/arch/hp300.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r 0615890fb53d -r 26e25293f296 usr.sbin/installboot/arch/hp300.c
--- a/usr.sbin/installboot/arch/hp300.c Thu Feb 10 21:55:33 2011 +0000
+++ b/usr.sbin/installboot/arch/hp300.c Thu Feb 10 23:25:11 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: hp300.c,v 1.12 2010/01/07 13:26:00 tsutsui Exp $ */
+/* $NetBSD: hp300.c,v 1.13 2011/02/10 23:25:11 tsutsui Exp $ */
/*-
* Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
#include <sys/cdefs.h>
#if !defined(__lint)
-__RCSID("$NetBSD: hp300.c,v 1.12 2010/01/07 13:26:00 tsutsui Exp $");
+__RCSID("$NetBSD: hp300.c,v 1.13 2011/02/10 23:25:11 tsutsui Exp $");
#endif /* !__lint */
/* We need the target disklabel.h, not the hosts one..... */
@@ -108,7 +108,8 @@
* The bootstrap can be well over 8k, and must go into a BOOT
* partition. Read NetBSD label to locate BOOT partition.
*/
- if (pread(params->fsfd, label, params->sectorsize, LABELSECTOR)
+ if (pread(params->fsfd, label, params->sectorsize,
+ LABELSECTOR * params->sectorsize)
!= (ssize_t)params->sectorsize) {
warn("reading disklabel");
goto done;
Home |
Main Index |
Thread Index |
Old Index