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?

_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to