small fix util.c

This commit is contained in:
Oleg Moiseenko 2018-02-10 22:10:38 +02:00
parent 28ee794f59
commit edd4c8385b

View file

@ -116,6 +116,7 @@ void hex_to_buffer(const uint8_t *buf, const uint8_t *hex_data, const size_t hex
char *tmp = (char *)buf;
size_t i;
memset(tmp, 0x00, hex_max_len);
int maxLen = ( hex_len > hex_max_len) ? hex_max_len : hex_len;