From ec785005aa607b4da7c0e5f4367ebf379a43e477 Mon Sep 17 00:00:00 2001 From: jgromes Date: Sun, 23 Mar 2025 21:47:20 +0100 Subject: [PATCH] [SX126x] Zero-initialize version string --- src/modules/SX126x/SX126x.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/SX126x/SX126x.cpp b/src/modules/SX126x/SX126x.cpp index 16bf8094..2b336422 100644 --- a/src/modules/SX126x/SX126x.cpp +++ b/src/modules/SX126x/SX126x.cpp @@ -2359,7 +2359,7 @@ bool SX126x::findChip(const char* verStr) { reset(); // read the version string - char version[16]; + char version[16] = { 0 }; this->mod->SPIreadRegisterBurst(RADIOLIB_SX126X_REG_VERSION_STRING, 16, reinterpret_cast(version)); // check version register