From 2673cec07a4740f86438b50cfe1b70b258a9a8c8 Mon Sep 17 00:00:00 2001 From: Dees_Troy Date: Tue, 2 Apr 2013 20:22:16 +0000 Subject: Move all AOSP code out of recovery binary Improves license compatibility between GPL and Apache Change-Id: I2b165aa575bb6213af6b07936f99610c113443f0 --- twrpDigest.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'twrpDigest.cpp') diff --git a/twrpDigest.cpp b/twrpDigest.cpp index add498c6c..663d08566 100644 --- a/twrpDigest.cpp +++ b/twrpDigest.cpp @@ -36,7 +36,7 @@ extern "C" { #include #include #include -#include "common.h" +#include "twcommon.h" #include "data.hpp" #include "variables.h" #include "twrp-functions.hpp" @@ -61,6 +61,7 @@ int twrpDigest::computeMD5(void) { while ((len = fread(buf, 1, sizeof(buf), file)) > 0) { MD5Update(&md5c, buf, len); } + fclose(file); MD5Final(md5sum ,&md5c); return 0; } -- cgit v1.2.3