]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/blobdiff - lib/kobject.c
Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[mirror_ubuntu-hirsute-kernel.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) = '/';
        }