From 985345d0029a55c47068df4f28a3108df301cca8 Mon Sep 17 00:00:00 2001 From: Paul B. Henson Date: Sun, 4 Aug 2013 21:07:20 +0200 Subject: ubi_tools: fix typo in strcpy Signed-off-by: Paul B. Henson Signed-off-by: Denys Vlasenko --- miscutils/ubi_tools.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'miscutils') diff --git a/miscutils/ubi_tools.c b/miscutils/ubi_tools.c index d923f1c..b713935 100644 --- a/miscutils/ubi_tools.c +++ b/miscutils/ubi_tools.c @@ -122,7 +122,7 @@ int ubi_tools_main(int argc UNUSED_PARAM, char **argv) + 2 * sizeof(int)*3 + /*just in case:*/ 16]; #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)); if (do_mkvol) { -- cgit v1.1