Update fastimagehash.go

This commit is contained in:
simon987 2020-04-12 11:45:06 -04:00 committed by GitHub
parent 11d151edcb
commit b0e9d9b3a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,13 +16,13 @@ import (
const char* Version = FASTIMAGEHASH_VERSION;
char *hash_to_hex_string_reversed_wr(void *h, int size) {
char *out = malloc(size * 2 + 1);
char *out = malloc(size * size / 4 + 1);
hash_to_hex_string_reversed((uchar*)h, out, size);
return out;
}
char *hash_to_hex_string_wr(void *h, int size) {
char *out = malloc(size * 2 + 1);
char *out = malloc(size * size / 4 + 1);
hash_to_hex_string((uchar*)h, out, size);
return out;
}