Skip to content

Commit

Permalink
mp: fix unknown size on Windows
Browse files Browse the repository at this point in the history
Signed-off-by: Eduardo Silva <[email protected]>
  • Loading branch information
edsiper committed Feb 19, 2021
1 parent 5b38a20 commit 7edd223
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/flb_mp.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ int flb_mp_validate_chunk(const void *data, size_t bytes,
* Just validate if all bytes are zero, if so, adjust counters
* and return zero.
*/
ptr = (unsigned char *) (data + pre_off);
ptr = (unsigned char *) (data);
ptr += pre_off;
if (ptr[0] != 0) {
goto error;
}
Expand Down

0 comments on commit 7edd223

Please sign in to comment.