diff options
| author | Jake Burkholder <jake@FreeBSD.org> | 2002-10-31 04:25:17 +0000 |
|---|---|---|
| committer | Jake Burkholder <jake@FreeBSD.org> | 2002-10-31 04:25:17 +0000 |
| commit | e03494dd17c2dcfed951c7616edac61268b497ce (patch) | |
| tree | 38450cdfb6b6c8be88f1a68a5820b4e5f3f6dc5f /lib/libdisk/disk.c | |
| parent | cbde04a9b7028bcea9232513a1974ca54d42842e (diff) | |
Notes
Diffstat (limited to 'lib/libdisk/disk.c')
| -rw-r--r-- | lib/libdisk/disk.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/libdisk/disk.c b/lib/libdisk/disk.c index bc4ce3d7d5b3..1c67115d1248 100644 --- a/lib/libdisk/disk.c +++ b/lib/libdisk/disk.c @@ -425,6 +425,13 @@ Set_Boot_Blocks(struct disk *d, const u_char *b1, const u_char *b2) d->boot1 = malloc(15 * 512); if(!d->boot1) return -1; memcpy(d->boot1, b1, 15 * 512); +#elif defined(__sparc64__) + if (d->boot1 != NULL) + free(d->boot1); + d->boot1 = malloc(16 * 512); + if (d->boot1 == NULL) + return (-1); + memcpy(d->boot1, b1, 16 * 512); #elif defined(__ia64__) /* nothing */ #else |
