diff options
| author | Thorsten Blum <thorsten.blum@linux.dev> | 2025-11-06 15:51:38 +0100 |
|---|---|---|
| committer | John Johansen <john.johansen@canonical.com> | 2026-01-18 06:53:18 -0800 |
| commit | 93d4dbdc8da0b8a3ba86f4a08868084f8da872e1 (patch) | |
| tree | 9054aac748cc60345ff630eee0abd80f8e12a271 /tools/perf/scripts/python/flamegraph.py | |
| parent | b31d3f7385fbb49681d44e7104cfa033cba4b1e8 (diff) | |
| download | linux-93d4dbdc8da0b8a3ba86f4a08868084f8da872e1.tar.gz linux-93d4dbdc8da0b8a3ba86f4a08868084f8da872e1.zip | |
apparmor: Replace deprecated strcpy in d_namespace_path
strcpy() is deprecated; replace it with a direct '/' assignment. The
buffer is already NUL-terminated, so there is no need to copy an
additional NUL terminator as strcpy() did.
Update the comment and add the local variable 'is_root' for clarity.
Closes: https://github.com/KSPP/linux/issues/88
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: John Johansen <john.johansen@canonical.com>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions
