Skip to content

Commit 985345d

Browse files
pbhensonDenys Vlasenko
authored and
Denys Vlasenko
committed
ubi_tools: fix typo in strcpy
Signed-off-by: Paul B. Henson <[email protected]> Signed-off-by: Denys Vlasenko <[email protected]>
1 parent da331d7 commit 985345d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: miscutils/ubi_tools.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ int ubi_tools_main(int argc UNUSED_PARAM, char **argv)
122122
+ 2 * sizeof(int)*3 + /*just in case:*/ 16];
123123
#define path_sys_class_ubi_ubi (path + sizeof("/sys/class/ubi/ubi")-1)
124124

125-
strcpy(path_sys_class_ubi_ubi, "/sys/class/ubi/ubi");
125+
strcpy(path, "/sys/class/ubi/ubi");
126126
memset(&req_structs, 0, sizeof(req_structs));
127127

128128
if (do_mkvol) {

0 commit comments

Comments
 (0)