From eeefd7362387076f29f1c0209c6a58839c781f92 Mon Sep 17 00:00:00 2001 From: Markus Makela Date: Tue, 20 Oct 2015 16:20:54 +0300 Subject: [PATCH] Changed sprintf format to use %02hhx instead of %02x. --- server/modules/routing/binlog/blr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/modules/routing/binlog/blr.c b/server/modules/routing/binlog/blr.c index e5bfbd23e..93a5aa32a 100644 --- a/server/modules/routing/binlog/blr.c +++ b/server/modules/routing/binlog/blr.c @@ -247,7 +247,7 @@ char *defuuid; { my_uuid(defuuid); if ((inst->uuid = (char *)malloc(38)) != NULL) - sprintf(inst->uuid, "%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x", + sprintf(inst->uuid, "%02hhx%02hhx%02hhx%02hhx-%02hhx%02hhx-%02hhx%02hhx-%02hhx%02hhx-%02hhx%02hhx%02hhx%02hhx%02hhx%02hhx", defuuid[0], defuuid[1], defuuid[2], defuuid[3], defuuid[4], defuuid[5], defuuid[6], defuuid[7], defuuid[8], defuuid[9], defuuid[10], defuuid[11],