diff options
author | PikalaxALT <PikalaxALT@users.noreply.github.com> | 2021-11-24 11:13:36 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-24 11:13:36 -0500 |
commit | a84ecb36410c266f7d4628b261904c2ef2e02d66 (patch) | |
tree | 4a41590e86c0d22f80100fdb98ab1b2c33c9e306 /tools/mwasmarm_patcher | |
parent | 5ee0d715d5e030f74d159c6bcee33c4ec416e8be (diff) | |
parent | 48f301e353a728c328f6406a8c18f1da8d9de331 (diff) |
Merge branch 'master' into extract_trainer_backsprites
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]);
}
|