summaryrefslogtreecommitdiff
path: root/tools/mwasmarm_patcher/mwasmarm_patcher.c
diff options
context:
space:
mode:
authorPikalaxALT <PikalaxALT@users.noreply.github.com>2021-11-24 11:14:20 -0500
committerGitHub <noreply@github.com>2021-11-24 11:14:20 -0500
commite5e8cd6859d2703814ab2ef7a6bdf0df1a6517ca (patch)
tree778dbe7ac4061fd4c131a985ba759dc2c7068025 /tools/mwasmarm_patcher/mwasmarm_patcher.c
parentc1c291bcd10bcd6e0cdd1573587661b91ef78da5 (diff)
parent48f301e353a728c328f6406a8c18f1da8d9de331 (diff)
Merge branch 'master' into unk_02006D98
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]);
}