diff options
Diffstat (limited to 'src/partsun.c')
-rw-r--r-- | src/partsun.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/partsun.c b/src/partsun.c index 3194fd45..52f224c6 100644 --- a/src/partsun.c +++ b/src/partsun.c @@ -142,7 +142,7 @@ list_part_t *read_part_sun(disk_t *disk_car, const int verbose, const int savehe unsigned int i; sun_partition *sunlabel; list_part_t *new_list_part=NULL; - unsigned char *buffer=MALLOC(disk_car->sector_size); + unsigned char *buffer=(unsigned char *)MALLOC(disk_car->sector_size); screen_buffer_reset(); sunlabel=(sun_partition*)buffer; if(disk_car->read(disk_car,DEFAULT_SECTOR_SIZE, buffer, (uint64_t)0)) |