]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - tools/ifdtool.c
tools: ifdtool: Write correct offset on 32-bit machine
[people/ms/u-boot.git] / tools / ifdtool.c
index 1d61df19f231016f0eee82d275bf47c63e258215..df166161f439f7fe66d2f9f2675298e2785bb20f 100644 (file)
@@ -987,7 +987,7 @@ int main(int argc, char *argv[])
                                        print_usage(argv[0]);
                                        exit(EXIT_FAILURE);
                                }
-                               ifile->addr = strtol(optarg, NULL, 0);
+                               ifile->addr = strtoll(optarg, NULL, 0);
                                ifile->type = opt == 'f' ? IF_fdt :
                                        opt == 'U' ? IF_uboot : IF_normal;
                                if (ifile->type == IF_fdt)