Ethernet strcat safety (#24808)

This commit is contained in:
s-hadinger
2026-05-30 17:19:29 +02:00
committed by GitHub
parent 4eac8298d5
commit a35e045863
@@ -258,7 +258,7 @@ void EthernetInit(void) {
eth_config_change = 0;
strlcpy(eth_hostname, TasmotaGlobal.hostname, sizeof(eth_hostname) -5); // Make sure there is room for "-eth"
strcat(eth_hostname, "-eth");
strlcat(eth_hostname, "-eth", sizeof(eth_hostname)); // use strlcat for defense in depth
WiFi.onEvent(EthernetEvent);