summaryrefslogtreecommitdiffstats
path: root/src/file_compress.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2011-11-06 19:11:25 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2011-11-06 19:11:25 +0100
commitaba5a2e6c83bcdd36a1e23f43c537e7866fee8e8 (patch)
tree76caca40bf07bfaa451250df5453fac07d4db4ce /src/file_compress.c
parent50a89881ad24ae969cf3f41e6cbf855a7709e07a (diff)
PhotoRec: fix MS Compress signature
Diffstat (limited to 'src/file_compress.c')
-rw-r--r--src/file_compress.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/file_compress.c b/src/file_compress.c
index 32b0b52..c274761 100644
--- a/src/file_compress.c
+++ b/src/file_compress.c
@@ -43,11 +43,11 @@ const file_hint_t file_hint_compress= {
.register_header_check=&register_header_check_compress
};
-static const unsigned char compress_header[10] = {'S', 'Z', 'D', 'D', 0x88, 0xf0, 0x27, 0x33, 'A', 0x00};
+static const unsigned char compress_header[9] = {'S', 'Z', 'D', 'D', 0x88, 0xf0, 0x27, 0x33, 'A'};
static void register_header_check_compress(file_stat_t *file_stat)
{
- register_header_check(0, compress_header, sizeof(compress_header), &header_check_compress, file_stat);
+ register_header_check(0, compress_header, sizeof(compress_header), &header_check_compress, file_stat);
}
static int header_check_compress(const unsigned char *buffer, const unsigned int buffer_size, const unsigned int safe_header_only, const file_recovery_t *file_recovery, file_recovery_t *file_recovery_new)