]> Git Repo - J-linux.git/blobdiff - lib/kobject.c
Merge tag 'driver-core-4.19-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git...
[J-linux.git] / lib / kobject.c
index 389829d3a1d1c8ff1c2b0bd529adcb8a2cc6c46a..97d86dc17c42bf09c94dcb5149ff669a7a6d49db 100644 (file)
@@ -144,7 +144,7 @@ static void fill_kobj_path(struct kobject *kobj, char *path, int length)
                int cur = strlen(kobject_name(parent));
                /* back up enough to print this name with '/' */
                length -= cur;
-               strncpy(path + length, kobject_name(parent), cur);
+               memcpy(path + length, kobject_name(parent), cur);
                *(path + --length) = '/';
        }
 
This page took 0.029511 seconds and 4 git commands to generate.