diff options
| author | David Laight <david.laight.linux@gmail.com> | 2026-06-06 21:26:00 +0100 |
|---|---|---|
| committer | Danilo Krummrich <dakr@kernel.org> | 2026-07-18 16:07:22 +0200 |
| commit | 06553566a841cc5ff8cd4dd11c00251b834c7fba (patch) | |
| tree | 8b5aa52a38ac2c12a53e79c6c79ac2d3a422acb4 /tools/perf/scripts/python | |
| parent | d996995a0ffb86fa0ff0f953221892dced6143a1 (diff) | |
kernfs: Replace strcpy(s, "../") with memcpy(s, "../", 4)
The code has already checked there is enough room.
Use memcpy() to avoid compiler warnings from possibly unbounded strcpy().
Signed-off-by: David Laight <david.laight.linux@gmail.com>
Link: https://patch.msgid.link/20260606202633.5018-6-david.laight.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
