use fuzzy_hash_stream where applicable
authorHelmut Grohne <helmut@subdivi.de>
Sun, 24 Mar 2013 13:10:59 +0000 (14:10 +0100)
committerHelmut Grohne <helmut@subdivi.de>
Sun, 24 Mar 2013 13:10:59 +0000 (14:10 +0100)
Thanks: Niels Thykier

fuzzy.c

diff --git a/fuzzy.c b/fuzzy.c
index 7b2b608..040038e 100644 (file)
--- a/fuzzy.c
+++ b/fuzzy.c
@@ -345,7 +345,7 @@ int fuzzy_hash_filename(const char *filename, /*@out@*/ char *result) {
        FILE *handle = fopen(filename, "rb");
        if(NULL == handle)
                return -1;
-       status = fuzzy_hash_file(handle, result);
+       status = fuzzy_hash_stream(handle, result);
        /* We cannot do anything about an fclose failure. */
        (void)fclose(handle);
        return status;