Files
linux/net/tipc
Kevin Paul Reddy Janagari 8c9b406ff4 tipc: Removing deprecated strncpy()
This patch suggests the replacement of strncpy with strscpy
as per Documentation/process/deprecated.
The strncpy() fails to guarantee NULL termination,
The function adds zero pads which isn't really convenient for short strings
as it may cause performance issues.

strscpy() is a preferred replacement because
it overcomes the limitations of strncpy mentioned above.

Compile Tested

Signed-off-by: Kevin Paul Reddy Janagari <kevinpaul468@gmail.com>
Reviewed-by: Tung Nguyen <tung.quang.nguyen@est.tech>
Tested-by: Tung Nguyen <tung.quang.nguyen@est.tech>
Link: https://patch.msgid.link/20250411085010.6249-1-kevinpaul468@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
2025-04-15 13:37:14 +02:00
..
2024-07-12 03:41:32 +01:00
2021-10-13 09:40:46 -07:00
2021-10-13 09:40:46 -07:00
2025-04-15 13:37:14 +02:00
2024-08-26 09:48:53 -07:00
2022-01-27 13:53:27 +00:00
2021-05-18 13:22:09 -07:00
2025-04-15 13:37:14 +02:00
2021-03-29 16:28:50 -07:00