X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/33d20e9dce82c6a2cfa04bf62c558d591a17ae3d..66628eee0046868d45eab3fafdb08151006121fc:/tools/firmware-utils/src/imagetag.c diff --git a/tools/firmware-utils/src/imagetag.c b/tools/firmware-utils/src/imagetag.c index 1818daaca..a7b9babd3 100644 --- a/tools/firmware-utils/src/imagetag.c +++ b/tools/firmware-utils/src/imagetag.c @@ -338,11 +338,12 @@ int tagfile(const char *kernel, const char *rootfs, const char *bin, \ if (args->root_first_flag) { sprintf(tag.flashImageStart, "%lu", rootfsoff); - sprintf(tag.rootLength, "%lu", rootfslen); + sprintf(tag.flashRootLength, "%lu", rootfslen); } else { sprintf(tag.flashImageStart, "%lu", kerneloff); - sprintf(tag.rootLength, "%lu", rootfslen + sizeof(deadcode)); + sprintf(tag.flashRootLength, "%lu", rootfslen + sizeof(deadcode)); } + int2tag(tag.rootLength, rootfslen + sizeof(deadcode)); if (args->rsa_signature_given) { strncpy(tag.rsa_signature, args->rsa_signature_arg, RSASIG_LEN);