summaryrefslogtreecommitdiffstats
path: root/src/partsun.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2008-06-23 19:28:58 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2008-06-23 19:28:58 +0200
commitb849a82750086bdddd127c7d43dd0a7381b3c28e (patch)
treeb7d0fd90e7e93e34455f0c582b2193803bbce4e1 /src/partsun.c
parent50a0862d48da7f0260524b17c3b33281a1b5dcc7 (diff)
Make the code less C++ hostile
Diffstat (limited to 'src/partsun.c')
-rw-r--r--src/partsun.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/partsun.c b/src/partsun.c
index 3194fd4..52f224c 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))