script: rename variable length_hash to hash_size

v2.8-utf8proc
Sébastien Helleu 2020-03-01 22:33:05 +01:00
parent 0271eacbe5
commit 1882686f8a
1 changed files with 3 additions and 3 deletions

View File

@ -756,7 +756,7 @@ script_repo_sha512sum_file (const char *filename)
struct stat st;
FILE *file;
char *data, hash[512 / 8], hash_hexa[((512 / 8) * 2) + 1];
int length_hash;
int hash_size;
if (stat (filename, &st) == -1)
return NULL;
@ -774,12 +774,12 @@ script_repo_sha512sum_file (const char *filename)
}
fclose (file);
if (!weechat_crypto_hash (data, st.st_size, "sha512", hash, &length_hash))
if (!weechat_crypto_hash (data, st.st_size, "sha512", hash, &hash_size))
{
free (data);
return NULL;
}
weechat_string_base_encode (16, hash, length_hash, hash_hexa);
weechat_string_base_encode (16, hash, hash_size, hash_hexa);
weechat_string_tolower (hash_hexa);
free (data);