From edd4c8385b3d6efb1467f5cee3c9ad5fe1491d11 Mon Sep 17 00:00:00 2001
From: Oleg Moiseenko <olegmsn@gmail.com>
Date: Sat, 10 Feb 2018 22:10:38 +0200
Subject: [PATCH 1/1] small fix util.c

---
 client/util.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/client/util.c b/client/util.c
index bbc7f2cf..5dc9a455 100644
--- a/client/util.c
+++ b/client/util.c
@@ -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;
 
-- 
2.39.5