diff --git a/src/analogsensor.cpp b/src/analogsensor.cpp index 135733597..3620fca44 100644 --- a/src/analogsensor.cpp +++ b/src/analogsensor.cpp @@ -651,7 +651,7 @@ bool AnalogSensor::get_value_info(JsonObject output, const char * cmd, const int // this is for a specific sensor // make a copy of the string command for parsing, and lowercase it char sensor_name[COMMAND_MAX_LENGTH] = {'\0'}; - char * attribute_s = nullptr; + char * attribute_s = nullptr; strlcpy(sensor_name, Helpers::toLower(cmd).c_str(), sizeof(sensor_name)); // check specific attribute to fetch instead of the complete record diff --git a/src/temperaturesensor.cpp b/src/temperaturesensor.cpp index 125cc42c3..d09f91394 100644 --- a/src/temperaturesensor.cpp +++ b/src/temperaturesensor.cpp @@ -378,7 +378,7 @@ bool TemperatureSensor::get_value_info(JsonObject output, const char * cmd, cons // this is for a specific sensor // make a copy of the string command for parsing, and lowercase it char sensor_name[COMMAND_MAX_LENGTH] = {'\0'}; - char * attribute_s = nullptr; + char * attribute_s = nullptr; strlcpy(sensor_name, Helpers::toLower(cmd).c_str(), sizeof(sensor_name)); // check for a specific attribute to fetch instead of the complete record