Re: [PATCH net-next v2] hinic: fix strncpy output truncated compile warnings

2020-08-11 Thread David Miller
From: Luo bin Date: Sun, 9 Aug 2020 11:53:49 +0800 > fix the compile warnings of 'strncpy' output truncated before > terminating nul copying N bytes from a string of the same length > > Signed-off-by: Luo bin > Reported-by: kernel test robot Applied.

[PATCH net-next v2] hinic: fix strncpy output truncated compile warnings

2020-08-08 Thread Luo bin
fix the compile warnings of 'strncpy' output truncated before terminating nul copying N bytes from a string of the same length Signed-off-by: Luo bin Reported-by: kernel test robot --- V2~V1: - remove strncpy V0~V1: - use the strlen()+1 pattern consistently .../net/ethernet/huawei/hinic/hinic_