summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2013-03-24 14:10:59 +0100
committerHelmut Grohne <helmut@subdivi.de>2013-03-24 14:10:59 +0100
commita406c5870f66d485b2841a8472ab9f97a273275a (patch)
tree1e3fc28e9cdb68d5ba5a2965ae77a1a97289ab94
parent4b9ae0055299bb38b861fc3c6b65cbdfffa6d4c9 (diff)
downloadssdeep-a406c5870f66d485b2841a8472ab9f97a273275a.tar.gz
use fuzzy_hash_stream where applicable
Thanks: Niels Thykier
-rw-r--r--fuzzy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fuzzy.c b/fuzzy.c
index 7b2b608..040038e 100644
--- 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;