mirror of
https://github.com/irssi/irssi.git
synced 2026-08-22 10:02:22 +02:00
fix usage of checksum_length
This commit is contained in:
parent
9c3532f542
commit
2b4e549d44
1 changed files with 2 additions and 1 deletions
|
|
@ -685,7 +685,8 @@ static int file_checksum(const char *fname, const guint8 *old_checksum, gsize ol
|
||||||
}
|
}
|
||||||
close(f);
|
close(f);
|
||||||
|
|
||||||
checksum = g_new0(guint8, g_checksum_type_get_length(checksum_type));
|
checksum_length = g_checksum_type_get_length(checksum_type);
|
||||||
|
checksum = g_new0(guint8, checksum_length);
|
||||||
g_checksum_get_digest(c, checksum, &checksum_length);
|
g_checksum_get_digest(c, checksum, &checksum_length);
|
||||||
g_checksum_free(c);
|
g_checksum_free(c);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue