Files
linux/drivers/s390/char
Justin Stitt e37988bcd1 s390/sclp: replace deprecated strncpy with strtomem
Let's move away from using strncpy() as it is deprecated [1].

Instead use strtomem() as `e.id` is already marked as nonstring:
|       char id[4] __nonstring;

We don't need strtomem_pad() because `e` is already memset to 0 --
rendering any additional NUL-padding useless.

Link: https://www.kernel.org/doc/html/latest/process/deprecated.html#strncpy-on-nul-terminated-strings [1]
Link: https://github.com/KSPP/linux/issues/90
Cc: [email protected]
Signed-off-by: Justin Stitt <[email protected]>
Reviewed-by: Kees Cook <[email protected]>
Link: https://lore.kernel.org/r/20231023-strncpy-drivers-s390-char-sclp-c-v1-1-eaeef80522bb@google.com
Signed-off-by: Vasily Gorbik <[email protected]>
2023-10-25 15:08:30 +02:00
..
2023-01-09 14:34:05 +01:00
2023-06-16 11:08:09 +02:00
2023-01-09 14:33:56 +01:00
2023-01-09 14:34:05 +01:00
…
…
…
2022-07-28 18:05:23 +02:00
…
2023-07-24 12:12:24 +02:00