Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/TabNahida/TCString
Browse files Browse the repository at this point in the history
  • Loading branch information
TabNahida committed Oct 27, 2024
2 parents 2ad5144 + 0d00f9e commit 00c5cb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/TCString.h
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ void hashMD5(void *data, size_t size, uint8_t hash[16])
uint64_t bit_len = size * 8;

size_t new_size = size + 1 + ((56 - (size + 1) % 64) % 64) + 8;
uint8_t *buffer = (char *)malloc(new_size);
uint8_t *buffer = (uint8_t *)malloc(new_size);
memcpy(buffer, input, size);
buffer[size] = 0x80;

Expand Down

0 comments on commit 00c5cb8

Please sign in to comment.