From: Oleg Moiseenko Date: Sat, 10 Feb 2018 20:10:38 +0000 (+0200) Subject: small fix util.c X-Git-Tag: v3.1.0~70^2~15 X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/edd4c8385b3d6efb1467f5cee3c9ad5fe1491d11 small fix util.c --- 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;