summaryrefslogtreecommitdiffstats
path: root/src/file_zip.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2009-01-04 20:30:12 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2009-01-04 20:30:12 +0100
commitdbba3af27b57bc1771111d810e332fefb853052c (patch)
treebe6b18afb39722d38f96792cd2b5e4c46981b2a2 /src/file_zip.c
parenta31b420f697831d4a8e9811489ad07b0b99c3fa4 (diff)
Fix for C++ compilation
Diffstat (limited to 'src/file_zip.c')
-rw-r--r--src/file_zip.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/file_zip.c b/src/file_zip.c
index 21870bf..c59047f 100644
--- a/src/file_zip.c
+++ b/src/file_zip.c
@@ -562,11 +562,11 @@ static int header_check_zip(const unsigned char *buffer, const unsigned int buff
file_recovery_new->extension="odt";
else if(memcmp(&buffer[30],"[Content_Types].xml",19)==0)
{
- if(pos_in_mem(&buffer[0],2000,"word",4)!=0)
+ if(pos_in_mem(&buffer[0], 2000, (const unsigned char*)"word", 4)!=0)
file_recovery_new->extension="docx";
- else if(pos_in_mem(&buffer[0],2000,"xl",2)!=0)
+ else if(pos_in_mem(&buffer[0], 2000, (const unsigned char*)"xl", 2)!=0)
file_recovery_new->extension="xlsx";
- else if(pos_in_mem(&buffer[0],2000,"ppt",3)!=0)
+ else if(pos_in_mem(&buffer[0], 2000, (const unsigned char*)"ppt", 3)!=0)
file_recovery_new->extension="pptx";
else
file_recovery_new->extension="docx";