summaryrefslogtreecommitdiff
path: root/ubi-utils
diff options
context:
space:
mode:
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2008-02-16 15:03:55 +0200
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2008-02-16 15:03:55 +0200
commite745cc6667a05da606af5c8f5c9fd26fbb811ad3 (patch)
tree758c3e5a6c47e4e5a360b68b40179d686fd5e16c /ubi-utils
parent7f186db411783575cc8839e2303c9dde175d35c8 (diff)
ubinize: bugfix in parsing image size string
This is a copy-paste problem: copied, but forgot to change the argument. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'ubi-utils')
-rw-r--r--ubi-utils/src/ubinize.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ubi-utils/src/ubinize.c b/ubi-utils/src/ubinize.c
index aaa89df..47dc571 100644
--- a/ubi-utils/src/ubinize.c
+++ b/ubi-utils/src/ubinize.c
@@ -302,7 +302,7 @@ int read_section(const char *sname, struct ubigen_vol_info *vi,
sprintf(buf, "%s:vol_size", sname);
p = iniparser_getstring(args.dict, buf, NULL);
if (p) {
- vi->bytes = ubiutils_get_bytes(optarg);
+ vi->bytes = ubiutils_get_bytes(p);
if (vi->bytes <= 0)
return errmsg("bad \"vol_size\" key: \"%s\"", p);