summaryrefslogtreecommitdiffstats
path: root/src/sessionp.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/sessionp.c
parent50a0862d48da7f0260524b17c3b33281a1b5dcc7 (diff)
Make the code less C++ hostile
Diffstat (limited to 'src/sessionp.c')
-rw-r--r--src/sessionp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sessionp.c b/src/sessionp.c
index 690618d..06c0f27 100644
--- a/src/sessionp.c
+++ b/src/sessionp.c
@@ -71,7 +71,7 @@ int session_load(char **cmd_device, char **current_cmd, alloc_data_t *list_free_
buffer_size=SESSION_MAXSIZE;
else
buffer_size=stat_rec.st_size;
- buffer=MALLOC(buffer_size+1);
+ buffer=(char *)MALLOC(buffer_size+1);
taille=fread(buffer,1,buffer_size,f_session);
buffer[taille]='\0';
fclose(f_session);
@@ -213,7 +213,7 @@ int session_save(alloc_data_t *list_free_space, disk_t *disk_car, const partitio
{ /* Reserve some space */
int res;
char *buffer;
- buffer=MALLOC(SESSION_MAXSIZE);
+ buffer=(char *)MALLOC(SESSION_MAXSIZE);
memset(buffer,0,SESSION_MAXSIZE);
res=fwrite(buffer,1,SESSION_MAXSIZE,f_session);
free(buffer);