Skip to content

Commit

Permalink
Fix invalid strcat usage
Browse files Browse the repository at this point in the history
  • Loading branch information
pzbitskiy committed Aug 3, 2024
1 parent 5393c38 commit f5eb894
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2533,7 +2533,9 @@ void mqttCallback(const char *topic, const uint8_t *payload, const unsigned int
}
else
{
mqttClient->publish(ha_debug_logs_topic.c_str(), 1, false, strcat((char *)"heatpump: wrong mqtt topic: ", topic));
String msg("heatpump: wrong mqtt topic: ");
msg += topic;
mqttClient->publish(ha_debug_logs_topic.c_str(), 1, false, msg.c_str());
}

if (update)
Expand Down

0 comments on commit f5eb894

Please sign in to comment.