From 1ef04a18c3186f89188bd093de4a401c08d5c098 Mon Sep 17 00:00:00 2001 From: Grant Limberg Date: Thu, 19 Jan 2023 11:08:25 -0800 Subject: [PATCH] ensure string is null terminated --- node/NetworkConfig.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/node/NetworkConfig.cpp b/node/NetworkConfig.cpp index a200ba8ca..3dc3b36d6 100644 --- a/node/NetworkConfig.cpp +++ b/node/NetworkConfig.cpp @@ -429,6 +429,7 @@ bool NetworkConfig::fromDictionary(const DictionaryssoProvider[sizeof(this->ssoProvider) - 1] = 0; } else { strncpy(this->ssoProvider, "default", sizeof(this->ssoProvider)); + this->ssoProvider[sizeof(this->ssoProvider) - 1] = 0; } } else { this->authenticationURL[0] = 0;