mirror of
https://github.com/intel/isa-l.git
synced 2024-12-13 09:52:56 +01:00
igzip: fix null-terminated string setting
Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
This commit is contained in:
parent
4a4635e8db
commit
4203d9628c
@ -1886,7 +1886,7 @@ static inline uint32_t string_header_copy(struct inflate_state *state,
|
||||
state->avail_in--;
|
||||
state->count = 0;
|
||||
if (str_buf != NULL)
|
||||
str_buf[len] = 0;
|
||||
str_buf[offset + len] = 0;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user