diff options
author | Colin Cross <ccross@android.com> | 2014-05-03 18:39:15 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2014-05-03 18:39:15 +0000 |
commit | 8ec42bb203d48e917d8da4d925378b448416d09e (patch) | |
tree | b1aa391284c722894d10e1c74721c20e5864be71 | |
parent | 3c049bbe993f92af653e055e0c3241c0b7bdeb52 (diff) | |
parent | f66bd0a0795b89a3596451dde8572b8c70b37d61 (diff) | |
download | system_core-8ec42bb203d48e917d8da4d925378b448416d09e.zip system_core-8ec42bb203d48e917d8da4d925378b448416d09e.tar.gz system_core-8ec42bb203d48e917d8da4d925378b448416d09e.tar.bz2 |
Merge "mkbootimg: fix padding calculation for 2ndstage loader"
-rw-r--r-- | mkbootimg/mkbootimg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mkbootimg/mkbootimg.c b/mkbootimg/mkbootimg.c index d598f03..a7daccc 100644 --- a/mkbootimg/mkbootimg.c +++ b/mkbootimg/mkbootimg.c @@ -263,7 +263,7 @@ int main(int argc, char **argv) if(second_data) { if(write(fd, second_data, hdr.second_size) != hdr.second_size) goto fail; - if(write_padding(fd, pagesize, hdr.ramdisk_size)) goto fail; + if(write_padding(fd, pagesize, hdr.second_size)) goto fail; } return 0; |