From 52400b25df5156e7c2c8109b5733dbf52ac3653f Mon Sep 17 00:00:00 2001 From: marcsello Date: Tue, 3 Nov 2020 19:55:35 +0100 Subject: [PATCH] Fixed header seeking --- src/ciff_tools.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ciff_tools.c b/src/ciff_tools.c index 8a83539..a8cefb7 100644 --- a/src/ciff_tools.c +++ b/src/ciff_tools.c @@ -65,7 +65,7 @@ uint8_t parse_ciff_from_mem(const uint8_t* data, uint64_t data_len, uint64_t* wi // Do some other checks to validate the header // According the specifications, the header must contain a newline character after the static fields - if (!contains(data+sizeof(struct ciff_static_header_t),header_info->header_size,'\n')) { + if (!contains(data+sizeof(struct ciff_static_header_t),header_info->header_size-sizeof(struct ciff_static_header_t),'\n')) { return CIFF_PARSE_UNKNOWN_ERROR; }