From 9e7020368e666d0a5d6c8255c9dbe970d2208c66 Mon Sep 17 00:00:00 2001 From: heinrich5991 Date: Sat, 27 May 2017 15:02:32 +0200 Subject: [PATCH] Fix UUID formatting - the last field only has 12 hex digits It didn't cause misprinted UUIDs because the string buffers had the correct size. --- src/engine/shared/uuid_manager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/shared/uuid_manager.cpp b/src/engine/shared/uuid_manager.cpp index 85a64caf4..d8ac24c07 100644 --- a/src/engine/shared/uuid_manager.cpp +++ b/src/engine/shared/uuid_manager.cpp @@ -39,7 +39,7 @@ void FormatUuid(CUuid Uuid, char *pBuffer, unsigned BufferLength) { unsigned char *p = Uuid.m_aData; str_format(pBuffer, BufferLength, - "%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x%02x%02x", + "%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x", p[0], p[1], p[2], p[3], p[4], p[5], p[6], p[7], p[8], p[9], p[10], p[11], p[12], p[13], p[14], p[15]); }