mirror of
https://github.com/UtilitechAS/amsreader-firmware.git
synced 2026-01-25 20:06:08 +00:00
Reserve space for null terminator
This commit is contained in:
@@ -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"));
|
||||
|
||||
Reference in New Issue
Block a user