@@ -970,7 +970,7 @@ TRACE_EVENT(xfile_create,
path = file_path(xf->file, pathname, sizeof(pathname) - 1);
if (IS_ERR(path))
path = "(unknown)";
- strncpy(__entry->pathname, path, sizeof(__entry->pathname));
+ strscpy_pad(__entry->pathname, path);
),
TP_printk("xfino 0x%lx path '%s'",
__entry->ino,
@@ -4728,7 +4728,7 @@ TRACE_EVENT(xmbuf_create,
path = file_path(file, pathname, sizeof(pathname) - 1);
if (IS_ERR(path))
path = "(unknown)";
- strncpy(__entry->pathname, path, sizeof(__entry->pathname));
+ strscpy_pad(__entry->pathname, path);
),
TP_printk("dev %d:%d xmino 0x%lx path '%s'",
MAJOR(__entry->dev), MINOR(__entry->dev),