RE: [PATCH net-next] Removing deprecated strncpy()
From: Tung Quang Nguyen
Date: Fri Apr 11 2025 - 03:54:41 EST
>Subject: RE: [PATCH net-next] Removing deprecated strncpy()
>
>>Subject: [PATCH net-next] 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@xxxxxxxxx>
Sorry, one more nit you need to change: Please append "tipc:" to your subject like this: [PATCH net-next] tipc: Removing deprecated strncpy()