summaryrefslogtreecommitdiffstats
path: root/src/file_zip.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/file_zip.c
parent50a0862d48da7f0260524b17c3b33281a1b5dcc7 (diff)
Make the code less C++ hostile
Diffstat (limited to 'src/file_zip.c')
-rw-r--r--src/file_zip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/file_zip.c b/src/file_zip.c
index 8114314..d712f11 100644
--- a/src/file_zip.c
+++ b/src/file_zip.c
@@ -95,7 +95,7 @@ static uint32_t expected_compressed_size=0;
static int64_t file_get_pos(FILE *f, const void* needle, const unsigned int size)
{
- char *buffer = MALLOC(4096);
+ char *buffer =(char *)MALLOC(4096);
int64_t total = 0;
#ifdef DEBUG_ZIP
log_trace("zip: file_get_pos(f, needle, %u)\n", size);
@@ -154,7 +154,7 @@ static int zip_parse_file_entry(file_recovery_t *fr)
len = le16(file.filename_length);
if (len)
{
- char *filename=MALLOC(len+1);
+ char *filename=(char *)MALLOC(len+1);
fr->file_size += len;
if (fread(filename, len, 1, fr->handle) != 1)
{