aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-06-09 11:31:54 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-06-09 16:56:05 +0300
commit4866181f5338637220995cd573573787e39d78ec (patch)
tree37e4aed9bb86caf21b97d3044b91c50939048843
parentd2ec9e9385de6fa5e3d311fa3dfb88d772e1fe91 (diff)
downloadlibmicrohttpd-4866181f5338637220995cd573573787e39d78ec.tar.gz
libmicrohttpd-4866181f5338637220995cd573573787e39d78ec.zip
MHD_bin_to_hex(): fixed wrong return value (unused currently by MHD).
-rw-r--r--src/microhttpd/mhd_str.c2
1 files changed, 1 insertions, 1 deletions
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,
1383 hex[i * 2 + 1] = (char) ((j < 10) ? (j + '0') : (j - 10 + 'a')); 1383 hex[i * 2 + 1] = (char) ((j < 10) ? (j + '0') : (j - 10 + 'a'));
1384 } 1384 }
1385 hex[i * 2] = 0; 1385 hex[i * 2] = 0;
1386 return i; 1386 return i * 2;
1387} 1387}
1388 1388
1389 1389