[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20250901133920.94022-1-osama.abdelkader@gmail.com>
Date: Mon, 1 Sep 2025 15:39:19 +0200
From: Osama Abdelkader <osama.abdelkader@...il.com>
To: tsbogend@...ha.franken.de
Cc: linux-mips@...r.kernel.org,
linux-kernel@...r.kernel.org,
Osama Abdelkader <osama.abdelkader@...il.com>
Subject: [PATCH] mips: math-emu: replace deprecated strcpy() in me-debugfs
use strscpy() instead of deprecated strcpy().
Signed-off-by: Osama Abdelkader <osama.abdelkader@...il.com>
---
arch/mips/math-emu/me-debugfs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/mips/math-emu/me-debugfs.c b/arch/mips/math-emu/me-debugfs.c
index d5ad76b2bb67..94667cbe18e7 100644
--- a/arch/mips/math-emu/me-debugfs.c
+++ b/arch/mips/math-emu/me-debugfs.c
@@ -41,7 +41,7 @@ static void adjust_instruction_counter_name(char *out_name, char *in_name)
{
int i = 0;
- strcpy(out_name, in_name);
+ strscpy(out_name, in_name, sizeof(out_name));
while (in_name[i] != '\0') {
if (out_name[i] == '_')
out_name[i] = '.';
--
2.43.0
Powered by blists - more mailing lists