diff options
author | Thorsten Blum <thorsten.blum@linux.dev> | 2025-04-16 21:09:07 +0200 |
---|---|---|
committer | Dinh Nguyen <dinguyen@kernel.org> | 2025-04-24 17:30:01 -0500 |
commit | aa264d9511aa5befa28cf8d9f32fce78fcf1a773 (patch) | |
tree | 43f0f22676c6e18d008902fd6739fbd69960b9d9 /tools/testing/radix-tree/bitmap.c | |
parent | 83ab598362fb3a30cf2789f7482878084ff8efaa (diff) |
nios2: Replace strcpy() with strscpy() and simplify setup_cpuinfo()
strcpy() is deprecated; use strscpy() instead.
Since the destination buffer has a fixed length, strscpy() automatically
determines its size using sizeof() when the size argument is omitted.
This makes the explicit size argument unnecessary - remove it.
Now, combine both if-else branches using strscpy() and the same buffer
into a single statement to simplify the code.
No functional changes intended.
Link: https://github.com/KSPP/linux/issues/88
Cc: linux-hardening@vger.kernel.org
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Reviewed-by: Kees Cook <kees@kernel.org>
Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
Diffstat (limited to 'tools/testing/radix-tree/bitmap.c')
0 files changed, 0 insertions, 0 deletions