Merge pull request #906 from dbeinder/nullterm

Reserve space for null terminator
This commit is contained in:
Gunnar Skjold
2025-01-27 16:03:44 +01:00
committed by GitHub

View File

@@ -2325,7 +2325,7 @@ void AmsWebServer::configFileDownload() {
if(pc.size() > 0) {
for(uint8_t i = 0; i < pc.size(); i++) {
PriceConfig& p = pc.at(i);
char direction[6] = "";
char direction[7] = "";
switch(p.direction) {
case PRICE_DIRECTION_IMPORT:
strcpy_P(direction, PSTR("import"));