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