Skip to content

Commit

Permalink
Convert CharSpan to C++ String for proper comparison. (#19476)
Browse files Browse the repository at this point in the history
  • Loading branch information
krypton36 authored and pull[bot] committed Nov 3, 2023
1 parent 855739c commit 1651848
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/tests/suites/commands/log/LogCommands.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ CHIP_ERROR LogCommands::UserPrompt(const char * identity,
{
std::string line;
std::getline(std::cin, line);
if (line != value.expectedValue.Value().data())
if (line != std::string(value.expectedValue.Value().data(), value.expectedValue.Value().size()))
{
return ContinueOnChipMainThread(CHIP_ERROR_INVALID_ARGUMENT);
}
Expand Down

0 comments on commit 1651848

Please sign in to comment.