From 5214b7b01c4d6971faabd3f2fd168918d3d1d276 Mon Sep 17 00:00:00 2001 From: dragonmux Date: Tue, 31 Oct 2023 20:18:43 +0000 Subject: [PATCH] windows/serialInterface: Chopped off an extra nul that was getting put on the end of the read registry string key --- src/windows/serialInterface.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/windows/serialInterface.cxx b/src/windows/serialInterface.cxx index feaa2f7..8a2258f 100644 --- a/src/windows/serialInterface.cxx +++ b/src/windows/serialInterface.cxx @@ -94,6 +94,7 @@ struct hklmRegistryKey_t displayError(result, "retrieve value for key"sv, keyName); return {}; } + value.resize(value.length() - 1U); return value; } };