[PATCH] ubimkvol: add -m option to create volume of maximum size
Paul B. Henson
henson at acm.org
Mon Jun 3 18:45:32 UTC 2013
On 6/3/2013 3:48 AM, walter harms wrote:
>> + p = path + sprintf(path, "/sys/class/ubi/ubi%d/", num);
>> +
>> + strcpy(p, "avail_eraseblocks");
>
> you can use xasprintf() here ?
I dunno, Mike said to use sprintf/strcpy to avoid copying the same
string prefix twice.
What would be the benefit of allocating the space for the string off of
the heap instead of the stack?
More information about the busybox
mailing list