summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorChristophe Fergeau <teuf@gnome.org>2007-09-27 17:55:21 +0000
committerChristophe Fergeau <teuf@gnome.org>2007-09-27 17:55:21 +0000
commit4c701176822c1d60adfbfed575d12c1e34ced991 (patch)
treeef98c66879450777cc38444d0d30948ab61f0193 /tests
parent6971f29265749ee85d85917a8e66cb732fb2bb08 (diff)
downloadlibgpod-tmz-4c701176822c1d60adfbfed575d12c1e34ced991.tar.gz
libgpod-tmz-4c701176822c1d60adfbfed575d12c1e34ced991.tar.xz
libgpod-tmz-4c701176822c1d60adfbfed575d12c1e34ced991.zip
* src/itdb_itunesdb.c: (calculate_db_checksum),
(itdb_write_checksum): * src/itdb_sha1.c: (itdb_compute_hash): * src/itdb_sha1.h: propagate the calculated checksum length as an out parameter to the checksumming functions, fixes a bug where a partial checksum would be written if it contained a \0 * tests/test-checksum.c: (calculate_db_checksum): update test program to that API change git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1702 f01d2545-417e-4e96-918e-98f8d0dbbcb6
Diffstat (limited to 'tests')
-rw-r--r--tests/test-checksum.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test-checksum.c b/tests/test-checksum.c
index 3f9ef85..70086cd 100644
--- a/tests/test-checksum.c
+++ b/tests/test-checksum.c
@@ -93,7 +93,7 @@ calculate_db_checksum (const char *itdb_path, guint64 fwid)
memset(itdb_data+0x32, 0, 20);
memset(itdb_data+0x58, 0, 20);
- checksum = itdb_compute_hash (fwid, itdb_data, stat_buf.st_size);
+ checksum = itdb_compute_hash (fwid, itdb_data, stat_buf.st_size, NULL);
munmap (itdb_data, stat_buf.st_size);
close (fd);