Fix types in frequency_score

This commit is contained in:
Dimitri Lozeve 2020-06-04 12:05:35 +02:00
parent cd7c584e6f
commit a47bcc8f9e
4 changed files with 6 additions and 6 deletions

View file

@ -31,7 +31,7 @@ int main(int argc, char *argv[]) {
unsigned char buf[512] = {0};
len = hex_to_bytes(buf, line);
unsigned char cur[512] = {'\0'};
char cur[512] = {'\0'};
for (char c = 32; c < 127; ++c) {
for (size_t i = 0; i < len; ++i) {
cur[i] = buf[i] ^ c;