summaryrefslogtreecommitdiff
path: root/tools/mwasmarm_patcher/mwasmarm_patcher.c
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2021-11-06 17:54:08 -0400
committerPikalaxALT <pikalaxalt@gmail.com>2021-11-06 17:54:08 -0400
commit2e8f24c114893c871b6295f283d14b087e862b1a (patch)
treeab56adaea3a1d2f67a78ecdc4af4805d6ad8d584 /tools/mwasmarm_patcher/mwasmarm_patcher.c
parent344a645b5a977bc277b9eb8c0a03496047b01a49 (diff)
parent48f301e353a728c328f6406a8c18f1da8d9de331 (diff)
Merge branch 'master' of github.com:pret/pokediamond into pikalax_work
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]);
}