From cd706288222c5537cf857a2d529bc32545bf5d6b Mon Sep 17 00:00:00 2001 From: Heiko Reese Date: Fri, 20 Aug 2021 01:08:53 +0200 Subject: [PATCH] =?UTF-8?q?=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit diff --git a/src/debug_helpers.c b/src/debug_helpers.c index a461043..329fd64 100644 --- a/src/debug_helpers.c +++ b/src/debug_helpers.c @@ -4,12 +4,12 @@ * Use like this: * log_write(0, LOG_MAIN, "DEBUG: %s", string2hex(var, var_len)); */ -char * string2hex(unsigned char * input, size_t length) { +char *string2hex(unsigned char *input, size_t length) { const int growth = 3; - char * outstring = store_get(growth*length+1); - memset(outstring, 0, 3*length+1); - for (int i =0; i