ubi_tools: fix typo in strcpy
Signed-off-by: Paul B. Henson <henson@acm.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
da331d779c
commit
985345d002
@ -122,7 +122,7 @@ int ubi_tools_main(int argc UNUSED_PARAM, char **argv)
|
|||||||
+ 2 * sizeof(int)*3 + /*just in case:*/ 16];
|
+ 2 * sizeof(int)*3 + /*just in case:*/ 16];
|
||||||
#define path_sys_class_ubi_ubi (path + sizeof("/sys/class/ubi/ubi")-1)
|
#define path_sys_class_ubi_ubi (path + sizeof("/sys/class/ubi/ubi")-1)
|
||||||
|
|
||||||
strcpy(path_sys_class_ubi_ubi, "/sys/class/ubi/ubi");
|
strcpy(path, "/sys/class/ubi/ubi");
|
||||||
memset(&req_structs, 0, sizeof(req_structs));
|
memset(&req_structs, 0, sizeof(req_structs));
|
||||||
|
|
||||||
if (do_mkvol) {
|
if (do_mkvol) {
|
||||||
|
Loading…
Reference in New Issue
Block a user