summaryrefslogtreecommitdiffstats
path: root/src/savehdr.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/savehdr.c
parent50a0862d48da7f0260524b17c3b33281a1b5dcc7 (diff)
Make the code less C++ hostile
Diffstat (limited to 'src/savehdr.c')
-rw-r--r--src/savehdr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/savehdr.c b/src/savehdr.c
index 1a09254..0cbea56 100644
--- a/src/savehdr.c
+++ b/src/savehdr.c
@@ -60,7 +60,7 @@ int save_header(disk_t *disk_car,partition_t *partition, const int verbose)
log_critical("Can't create header.log file: %s\n",strerror(errno));
return -1;
}
- buffer=MALLOC(256*DEFAULT_SECTOR_SIZE);
+ buffer=(unsigned char *)MALLOC(256*DEFAULT_SECTOR_SIZE);
memset(buffer,0,DEFAULT_SECTOR_SIZE);
{
char status='D';
@@ -112,7 +112,7 @@ backup_disk_t *partition_load(const disk_t *disk_car, const int verbose)
log_error("Can't open backup.log file: %s\n",strerror(errno));
return list_backup;
}
- buffer=MALLOC(BACKUP_MAXSIZE);
+ buffer=(char *)MALLOC(BACKUP_MAXSIZE);
taille=fread(buffer,1,BACKUP_MAXSIZE,f_backup);
buffer[(taille<BACKUP_MAXSIZE?taille:BACKUP_MAXSIZE-1)]='\0';
if(verbose>1)