commit 631f5c986af0fb148a69393b5759ecb26b86dd87
Author: Hector Martin <[email protected]>
Date: Mon Oct 19 23:57:19 2009 +0200
Fix another sizeof issue
src/itdb_sqlite.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/itdb_sqlite.c b/src/itdb_sqlite.c
index 4ce2aef..2d96bb3 100644
--- a/src/itdb_sqlite.c
+++ b/src/itdb_sqlite.c
@@ -1182,12 +1182,11 @@ static int cbk_calc_sha1_one_block (FILE *f, unsigned
char sha1[20])
}
}
- g_assert (g_checksum_type_get_length (G_CHECKSUM_SHA1) == sizeof (sha1));
- sha1_len = sizeof (sha1);
+ sha1_len = g_checksum_type_get_length (G_CHECKSUM_SHA1);
+ g_assert (sha1_len == 20);
checksum = g_checksum_new (G_CHECKSUM_SHA1);
g_checksum_update (checksum, block, BLOCK_SIZE);
g_checksum_get_digest (checksum, sha1, &sha1_len);
- g_assert (sha1_len == sizeof (sha1));
g_checksum_free (checksum);
return 0;
------------------------------------------------------------------------------
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