From e745cc6667a05da606af5c8f5c9fd26fbb811ad3 Mon Sep 17 00:00:00 2001 From: Artem Bityutskiy Date: Sat, 16 Feb 2008 15:03:55 +0200 Subject: 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 --- ubi-utils/src/ubinize.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ubi-utils/src') 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); -- cgit v1.2.3