summaryrefslogtreecommitdiffstats
path: root/src/adv.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/adv.c
parent50a0862d48da7f0260524b17c3b33281a1b5dcc7 (diff)
Make the code less C++ hostile
Diffstat (limited to 'src/adv.c')
-rw-r--r--src/adv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/adv.c b/src/adv.c
index fa56e4e..225223d 100644
--- a/src/adv.c
+++ b/src/adv.c
@@ -418,7 +418,7 @@ void interface_adv(disk_t *disk_car, const int verbose,const int dump_ind, const
image_dd=ask_location("Do you want to save disk file image.dd in %s%s ? [Y/N]","");
if(image_dd!=NULL)
{
- char *new_recup_dir=MALLOC(strlen(image_dd)+1+strlen(DEFAULT_IMAGE_NAME)+1);
+ char *new_recup_dir=(char *)MALLOC(strlen(image_dd)+1+strlen(DEFAULT_IMAGE_NAME)+1);
strcpy(new_recup_dir,image_dd);
strcat(new_recup_dir,"/");
strcat(new_recup_dir,DEFAULT_IMAGE_NAME);