Add needed support bits for the Meshstick (#9042)

* Add needed support bits for the Meshstick

* Portduino: Reduce allowed length by one byte to prevent possible overflow
This commit is contained in:
Jonathan Bennett
2026-01-07 23:04:02 -06:00
committed by GitHub
parent 4d303c95d1
commit fb7af18f4f
3 changed files with 23 additions and 1 deletions

View File

@@ -64,7 +64,7 @@ class Ch341Hal : public RadioLibHal
void getProductString(char *_product_string, size_t len)
{
len = len > 95 ? 95 : len;
strncpy(_product_string, pinedio.product_string, len);
memcpy(_product_string, pinedio.product_string, len);
}
void init() override {}