summaryrefslogtreecommitdiff
path: root/tools/mwasmarm_patcher/mwasmarm_patcher.c
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/mwasmarm_patcher.c
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/mwasmarm_patcher.c')
-rw-r--r--tools/mwasmarm_patcher/mwasmarm_patcher.c2
1 files changed, 1 insertions, 1 deletions
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]);
}