Skip to content

Commit

Permalink
[#628] Fix issue in StringConvertUtil.h caught by MISRA 2023 rule 7.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
mikir committed Aug 19, 2024
1 parent 009d16a commit dbe4083
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const char* convertIntToString(std::array<char, 24>& buffer, T value, bool isNeg
"8081828384858687888990919293949596979899"};

auto bufferEnd = buffer.end();
*(--bufferEnd) = 0; // always terminate with '\0'
*(--bufferEnd) = '\0'; // always terminate with '\0'

while (value >= 100)
{
Expand Down

0 comments on commit dbe4083

Please sign in to comment.