From dd8ce0e0907b14e3fd5da5d291851b04e9ac3b42 Mon Sep 17 00:00:00 2001 From: Chris Shoemaker Date: Sun, 26 Feb 2006 05:00:52 +0000 Subject: [PATCH] Keep track of exactly how many bytes we've sent to md5_process_bytes(). git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13391 57a11ea4-9604-0410-9ed3-97b8803252fd --- lib/libqof/qof/guid.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libqof/qof/guid.c b/lib/libqof/qof/guid.c index 7d4c6f9350..16affda888 100644 --- a/lib/libqof/qof/guid.c +++ b/lib/libqof/qof/guid.c @@ -257,8 +257,8 @@ init_from_dir(const char *dirname, unsigned int max_files) if (de == NULL) break; - md5_process_bytes(de, strlen(de->d_name), &guid_context); - total += sizeof(struct dirent); + md5_process_bytes(de->d_name, strlen(de->d_name), &guid_context); + total += strlen(de->d_name); result = snprintf(filename, sizeof(filename), "%s/%s", dirname, de->d_name);