commit 53819c233aaafb062f3c165870680062a9777517
Author: Christophe Fergeau <[email protected]>
Date: Mon Oct 19 16:35:21 2009 +0200
use proper size for sha1 hash
sizeof doesn't seem to work on sized arrays used as function arguments :-/
src/itdb_hash72.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/itdb_hash72.c b/src/itdb_hash72.c
index 23a7802..fb5314b 100644
--- a/src/itdb_hash72.c
+++ b/src/itdb_hash72.c
@@ -228,7 +228,7 @@ static void itdb_hash72_compute_itunesdb_sha1 (unsigned
char *itdb_data,
memset(&header->hash58, 0, sizeof (header->hash58));
memset(&header->hash72, 0, sizeof (header->hash72));
- sha1_len = sizeof (sha1);
+ sha1_len = g_checksum_type_get_length (G_CHECKSUM_SHA1);
checksum = g_checksum_new (G_CHECKSUM_SHA1);
g_checksum_update (checksum, itdb_data, itdb_len);
g_checksum_get_digest (checksum, sha1, &sha1_len);
------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
_______________________________________________
gtkpod-cvs2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2