Skip to content

Commit

Permalink
Fix buffer overflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidchisnall committed Jan 1, 2025
1 parent 7ab4836 commit d7f260d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/04.MQTT/mqtt.cc
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ void __cheri_callback publishCallback(const char *topicName,
return;
}

Debug::log("Got a PUBLISH for topic {}", topicName);
Debug::log("Got a PUBLISH for topic {}",
std::string_view{topicName, topicNameLength});
publishReceived++;
}

Expand Down

0 comments on commit d7f260d

Please sign in to comment.