summaryrefslogtreecommitdiff
path: root/tools/mwasmarm_patcher/mwasmarm_patcher.c
diff options
context:
space:
mode:
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]);
}