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; } };