gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libmicrohttpd] 02/06: MHD_bin_to_hex(): fixed wrong return value (unuse


From: gnunet
Subject: [libmicrohttpd] 02/06: MHD_bin_to_hex(): fixed wrong return value (unused currently by MHD).
Date: Thu, 09 Jun 2022 15:56:17 +0200

This is an automated email from the git hooks/post-receive script.

karlson2k pushed a commit to branch master
in repository libmicrohttpd.

commit 4866181f5338637220995cd573573787e39d78ec
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Thu Jun 9 11:31:54 2022 +0300

    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;
 }
 
 

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]