commit | 2d2e05727fe4013f807ffa814dff0e75259a1db4 | [log] [tgz] |
---|---|---|
author | Stefan Roese <sr@denx.de> | Tue Dec 02 10:53:47 2008 +0100 |
committer | Stefan Roese <sr@denx.de> | Tue Dec 09 10:07:41 2008 +0100 |
tree | 09b03c9f5f8f1aaee848c91225fe4d2a6d0b3934 | |
parent | 2ee951ba2ac9874d2a93d52e7a187d3184be937e [diff] [blame] |
UBI: Fix size parsing in "ubi create" Signed-off-by: Stefan Roese <sr@denx.de>
diff --git a/common/cmd_ubi.c b/common/cmd_ubi.c index 495d71e..fd33a67 100644 --- a/common/cmd_ubi.c +++ b/common/cmd_ubi.c
@@ -546,7 +546,7 @@ } /* E.g., create volume size */ if (argc == 4) { - addr = simple_strtoul(argv[3], NULL, 16); + size = simple_strtoul(argv[3], NULL, 16); argc--; } /* Use maximum available size */