aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/helpers.c
diff options
context:
space:
mode:
authorThorsten Blum <thorsten.blum@linux.dev>2025-08-19 11:59:06 +0200
committerDaniel Thompson (RISCstar) <danielt@kernel.org>2025-09-20 19:56:28 +0100
commit0c28a23722e03695ae1cbbadde3dd32d75c1cb7f (patch)
treece3da24286cb9633d00bb0e7ea6b62c155c9b05e /rust/helpers/helpers.c
parentkdb: Replace deprecated strcpy() with memcpy() in parse_grep() (diff)
downloadlinux-0c28a23722e03695ae1cbbadde3dd32d75c1cb7f.tar.gz
linux-0c28a23722e03695ae1cbbadde3dd32d75c1cb7f.zip
kdb: Replace deprecated strcpy() with helper function in kdb_defcmd()
strcpy() is deprecated; use the new helper function kdb_strdup_dequote() instead. In addition to string duplication similar to kdb_strdup(), it also trims surrounding quotes from the input string if present. kdb_strdup_dequote() also checks for a trailing quote in the input string which was previously not checked. Link: https://github.com/KSPP/linux/issues/88 Reviewed-by: Douglas Anderson <dianders@chromium.org> Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev> Signed-off-by: Daniel Thompson (RISCstar) <danielt@kernel.org>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions