Skip to content

Commit

Permalink
fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
lingol committed Sep 3, 2019
1 parent ca7852a commit e4487bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Android/MMKV/mmkv/src/main/cpp/MMKV.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1422,7 +1422,7 @@ static string md5(const string &value) {
char tmp[3] = {0}, buf[33] = {0};
MD5((const unsigned char *) value.c_str(), value.size(), md);
for (int i = 0; i < MD5_DIGEST_LENGTH; i++) {
sprintf(tmp, "%2.2x", md[i]);
snprintf(tmp, sizeof(tmp), "%2.2x", md[i]);
strcat(buf, tmp);
}
return string(buf);
Expand Down

0 comments on commit e4487bb

Please sign in to comment.