From: Rafaël Carré Date: Tue, 22 Jan 2008 18:41:07 +0000 (+0000) Subject: gcry_md_read() returns a buffer which hold at least 20 bytes X-Git-Tag: 0.9.0-test0~3284 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=da932222ea443a68cad63e63a6366a667e18990a;p=vlc gcry_md_read() returns a buffer which hold at least 20 bytes --- diff --git a/src/misc/update.c b/src/misc/update.c index 6ed2d54c1c..9f9f071983 100644 --- a/src/misc/update.c +++ b/src/misc/update.c @@ -663,7 +663,6 @@ static uint8_t *hash_sha1_from_file( const char *psz_file, fclose( f ); gcry_md_final( hd ); - /* FIXME: is it always padded to 20 bytes ? */ return( (uint8_t*) gcry_md_read( hd, GCRY_MD_SHA1) ); }