diff mbox series

[15/23] mongoose: Replace deprecated mg_hex()

Message ID 20240612144010.470339-16-Michael.Glembotzki@iris-sensing.com
State Changes Requested
Headers show
Series Update Mongoose Version to 7.14 | expand

Commit Message

Michael Glembotzki June 12, 2024, 2:36 p.m. UTC
From: Michael Glembotzki <m.glembo@gmail.com>

mongoose rev-id: b46bee0540c83c780ae9622ef18b9cc8a7b3ebab

Signed-off-by: Michael Glembotzki <Michael.Glembotzki@iris-sensing.com>
---
 mongoose/mongoose_interface.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/mongoose/mongoose_interface.c b/mongoose/mongoose_interface.c
index 466ef746..24311468 100644
--- a/mongoose/mongoose_interface.c
+++ b/mongoose/mongoose_interface.c
@@ -180,7 +180,7 @@  static void cs_md5(char buf[33], ...)
 	va_end(ap);
 
 	mg_hash_md5_v(num_msgs, msgs, msg_lens, hash);
-	mg_hex(hash, sizeof(hash), buf);
+	mg_snprintf(buf, 33, "%M", mg_print_hex, sizeof(hash), hash);
 }
 
 static void mg_mkmd5resp(struct mg_str method, struct mg_str uri, struct mg_str ha1,