diff options
Diffstat (limited to 'tools/mwasmarm_patcher')
-rw-r--r-- | tools/mwasmarm_patcher/Makefile | 2 | ||||
-rw-r--r-- | tools/mwasmarm_patcher/mwasmarm_patcher.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/mwasmarm_patcher/Makefile b/tools/mwasmarm_patcher/Makefile index 26df548c..bff3a677 100644 --- a/tools/mwasmarm_patcher/Makefile +++ b/tools/mwasmarm_patcher/Makefile @@ -2,7 +2,7 @@ UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Darwin)
-CC := gcc-5
+CC := clang
else
CC := gcc
endif
diff --git a/tools/mwasmarm_patcher/mwasmarm_patcher.c b/tools/mwasmarm_patcher/mwasmarm_patcher.c index e5ad3272..18572204 100644 --- a/tools/mwasmarm_patcher/mwasmarm_patcher.c +++ b/tools/mwasmarm_patcher/mwasmarm_patcher.c @@ -224,7 +224,7 @@ int main(int argc, char *argv[]) { }
free(string);
- char buf[SHA_DIGEST_LENGTH*2];
+ char buf[(SHA_DIGEST_LENGTH*2)+1];
for (int i=0; i < SHA_DIGEST_LENGTH; i++) {
sprintf(&(buf[i*2]), "%02x", sha1[i]);
}
|