summaryrefslogtreecommitdiff
path: root/tools/mwasmarm_patcher
diff options
context:
space:
mode:
authorPikalaxALT <PikalaxALT@users.noreply.github.com>2021-11-06 17:41:16 -0400
committerGitHub <noreply@github.com>2021-11-06 17:41:16 -0400
commit48f301e353a728c328f6406a8c18f1da8d9de331 (patch)
tree95cd38dba1187d007a51dca7f455d7b6541d5110 /tools/mwasmarm_patcher
parent05ded46ab7f556956a2eee2411a8d2968b7e8ad6 (diff)
parentba7202457fec51d31da4d23a1840813952f30f31 (diff)
Merge pull request #470 from shinyquagsire23/macos-build
Update build scripts and instructions for MacOS Monterey
Diffstat (limited to 'tools/mwasmarm_patcher')
-rw-r--r--tools/mwasmarm_patcher/Makefile2
-rw-r--r--tools/mwasmarm_patcher/mwasmarm_patcher.c2
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]);
}