commit 4866181f5338637220995cd573573787e39d78ec
parent d2ec9e9385de6fa5e3d311fa3dfb88d772e1fe91
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date: Thu, 9 Jun 2022 11:31:54 +0300
MHD_bin_to_hex(): fixed wrong return value (unused currently by MHD).
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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;
}