From 852cf9877ab4f1c0e6e2c1f53f2a03edd40c3c85 Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Wed, 11 Jan 2017 19:32:13 +0000 Subject: [PATCH] uuid: Remove newline if there is a newline. --- source/common/uuid.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source/common/uuid.cpp b/source/common/uuid.cpp index 2831e88..224ec55 100644 --- a/source/common/uuid.cpp +++ b/source/common/uuid.cpp @@ -54,6 +54,12 @@ string GenerateUUID() #endif + if (uuidout.back() == '\n'){ + + uuidout.erase(uuidout.end()-1); + + } + return uuidout; } \ No newline at end of file -- 2.39.2