commit | 32bafc62f1fb0de295402e49858c7467ea1548c2 | [log] [tgz] |
---|---|---|
author | Andres Morales <anmorales@google.com> | Fri May 08 07:55:08 2015 -0700 |
committer | Andres Morales <anmorales@google.com> | Fri May 08 07:55:08 2015 -0700 |
tree | 2cd6c08b48c3ede0505f569a87ace59b423c3b61 | |
parent | 4d6a5dfa712d58982f78eb4a2d47f9690fae3240 [diff] |
pass in correct buffer to print_id hdr.id is actually larger than sha Change-Id: Iac33dbaaf4bea9acde5ba49d8601f7ac767677d5
diff --git a/mkbootimg/mkbootimg.c b/mkbootimg/mkbootimg.c index 8fd9a3b..edc5104 100644 --- a/mkbootimg/mkbootimg.c +++ b/mkbootimg/mkbootimg.c
@@ -278,7 +278,7 @@ } if (get_id) { - print_id(sha, sizeof(hdr.id)); + print_id((uint8_t *) hdr.id, sizeof(hdr.id)); } return 0;