diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 1995-05-11 05:22:54 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 1995-05-11 05:22:54 +0000 |
| commit | 8f9c9957875b58ddd0f9dd3fa49b7f8a5ebd52ea (patch) | |
| tree | c4acd58166be0977f64200c6b3779bbb24931b2f /lib/libdisk/chunk.c | |
| parent | 4767b312114eaa7ff40a6693e6e1d17c1f8cc481 (diff) | |
Notes
Diffstat (limited to 'lib/libdisk/chunk.c')
| -rw-r--r-- | lib/libdisk/chunk.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/libdisk/chunk.c b/lib/libdisk/chunk.c index 54630bed7761..c100927045b7 100644 --- a/lib/libdisk/chunk.c +++ b/lib/libdisk/chunk.c @@ -6,7 +6,7 @@ * this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp * ---------------------------------------------------------------------------- * - * $Id: chunk.c,v 1.10 1995/05/07 01:28:16 jkh Exp $ + * $Id: chunk.c,v 1.11 1995/05/08 02:08:25 phk Exp $ * */ @@ -200,6 +200,8 @@ Add_Chunk(struct disk *d, long offset, u_long size, char *name, chunk_e type, c1->subtype = subtype; return 0; } + if (type == freebsd) + subtype = 0xa5; c1 = 0; if(!c1 && (type == freebsd || type == fat || type == unknown)) c1 = Find_Mother_Chunk(d->chunks,offset,end,extended); @@ -380,6 +382,7 @@ Collapse_Chunk(struct disk *d, struct chunk *c1) } if(c3->type == unused) { c2 = new_chunk(); + if (!c2) err(1,"malloc failed"); *c2 = *c1; c1->next = c2; c1->name = strdup("-"); |
