brcm47xx: fix error when build firmware on x86_64 host (closes #7672)
[openwrt.git] / tools / firmware-utils / src / imagetag.c
index 1818daa..a7b9bab 100644 (file)
@@ -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);
This page took 0.026186 seconds and 4 git commands to generate.