Skip to content

Commit

Permalink
Fix linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
tobbi committed Dec 1, 2024
1 parent 59ff556 commit c04b46a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/addon/md5.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,11 @@ std::string MD5::hex_digest() {

finalize();

for (i=0; i<16; i++) snprintf(s+i*2, sizeof(s+i*2), "%02x", digest[i]);
for (i=0; i<16; i++)
{
char* so = s + i * 2;
snprintf(so, sizeof(so), "%02x", digest[i]);
}

s[32]='\0';

Expand Down

0 comments on commit c04b46a

Please sign in to comment.