NEWS_BOOT_BLOCK_OFFSET is now changed to 0, so use NEWS_BOOT_BLOCK_BLOCKSIZE
to allocate buffer to read LABELSECTOR.
This commit is contained in:
parent
313e584cb8
commit
6734af58f9
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: news.c,v 1.2 2002/05/21 00:38:08 lukem Exp $ */
|
||||
/* $NetBSD: news.c,v 1.3 2002/05/21 14:59:38 tsutsui Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2002 The NetBSD Foundation, Inc.
|
||||
|
@ -38,7 +38,7 @@
|
|||
|
||||
#include <sys/cdefs.h>
|
||||
#if defined(__RCSID) && !defined(__lint)
|
||||
__RCSID("$NetBSD: news.c,v 1.2 2002/05/21 00:38:08 lukem Exp $");
|
||||
__RCSID("$NetBSD: news.c,v 1.3 2002/05/21 14:59:38 tsutsui Exp $");
|
||||
#endif /* !__lint */
|
||||
|
||||
#if HAVE_CONFIG_H
|
||||
|
@ -157,7 +157,7 @@ static int
|
|||
news_copydisklabel(ib_params *params, struct bbinfo_params *bbparams,
|
||||
uint8_t *bb)
|
||||
{
|
||||
uint8_t boot00[NEWS_BOOT_BLOCK_OFFSET];
|
||||
uint8_t boot00[NEWS_BOOT_BLOCK_BLOCKSIZE];
|
||||
ssize_t rv;
|
||||
|
||||
assert(params != NULL);
|
||||
|
|
Loading…
Reference in New Issue