From 4866181f5338637220995cd573573787e39d78ec Mon Sep 17 00:00:00 2001 From: "Evgeny Grin (Karlson2k)" Date: Thu, 9 Jun 2022 11:31:54 +0300 Subject: [PATCH] MHD_bin_to_hex(): fixed wrong return value (unused currently by MHD). --- src/microhttpd/mhd_str.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/microhttpd/mhd_str.c b/src/microhttpd/mhd_str.c index d3d8c594..014e71a3 100644 --- a/src/microhttpd/mhd_str.c +++ b/src/microhttpd/mhd_str.c @@ -1383,7 +1383,7 @@ MHD_bin_to_hex (const void *bin, hex[i * 2 + 1] = (char) ((j < 10) ? (j + '0') : (j - 10 + 'a')); } hex[i * 2] = 0; - return i; + return i * 2; }