Re: [PATCH] ext4: fix -Wstringop-truncation warnings

2020-12-16 Thread Wenlin Kang
On 2020/12/16 下午12:20, Theodore Y. Ts'o wrote: [Please note this e-mail is from an EXTERNAL e-mail address] On Thu, Nov 12, 2020 at 05:33:24PM +0800, Kang Wenlin wrote: From: Wenlin Kang The strncpy() function may create a unterminated string, use strscpy_pad() instead. This fixes the

Re: [PATCH] ext4: fix -Wstringop-truncation warnings

2020-12-15 Thread Theodore Y. Ts'o
On Thu, Nov 12, 2020 at 05:33:24PM +0800, Kang Wenlin wrote: > From: Wenlin Kang > > The strncpy() function may create a unterminated string, > use strscpy_pad() instead. > > This fixes the following warning: > > fs/ext4/super.c: In function '__save_error_info': > fs/ext4/super.c:349:2:

[PATCH] ext4: fix -Wstringop-truncation warnings

2020-11-12 Thread Kang Wenlin
From: Wenlin Kang The strncpy() function may create a unterminated string, use strscpy_pad() instead. This fixes the following warning: fs/ext4/super.c: In function '__save_error_info': fs/ext4/super.c:349:2: warning: 'strncpy' specified bound 32 equals destination size