diff options
| author | Kevin Brodsky <kevin.brodsky@arm.com> | 2024-12-09 12:50:08 +0300 |
|---|---|---|
| committer | Andrew Morton <akpm@linux-foundation.org> | 2025-01-14 09:40:54 +0300 |
| commit | 5b6b2799f617b3259d551980fa94f290d96bc593 (patch) | |
| tree | 80dc91d09ba33af1ce726a2f08a92b665e66f753 /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | 516fb516383ef39d881d116c6447826356883ad0 (diff) | |
| download | linux-5b6b2799f617b3259d551980fa94f290d96bc593.tar.xz | |
selftests/mm: fix strncpy() length
GCC complains (with -O2) that the length is equal to the destination size,
which is indeed invalid. Subtract 1 from the size of the array to leave
room for '\0'.
Link: https://lkml.kernel.org/r/20241209095019.1732120-4-kevin.brodsky@arm.com
Signed-off-by: Kevin Brodsky <kevin.brodsky@arm.com>
Cc: Aruna Ramakrishna <aruna.ramakrishna@oracle.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: Joey Gouly <joey.gouly@arm.com>
Cc: Keith Lucas <keith.lucas@oracle.com>
Cc: Ryan Roberts <ryan.roberts@arm.com>
Cc: Shuah Khan <shuah@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions
