aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/configfs/symlink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/configfs/symlink.c b/fs/configfs/symlink.c
index 78ffc2699993..a5c54af861f7 100644
--- a/fs/configfs/symlink.c
+++ b/fs/configfs/symlink.c
@@ -64,7 +64,7 @@ static void fill_item_path(struct config_item * item, char * buffer, int length)
64 64
65 /* back up enough to print this bus id with '/' */ 65 /* back up enough to print this bus id with '/' */
66 length -= cur; 66 length -= cur;
67 strncpy(buffer + length,config_item_name(p),cur); 67 memcpy(buffer + length, config_item_name(p), cur);
68 *(buffer + --length) = '/'; 68 *(buffer + --length) = '/';
69 } 69 }
70} 70}