diff options
| author | Xiongfeng Wang <[email protected]> | 2018-01-08 12:01:32 +0000 |
|---|---|---|
| committer | Corey Minyard <[email protected]> | 2018-01-09 02:02:47 +0000 |
| commit | 1b4254cee0643ae624d33481b5107b790ae581b9 (patch) | |
| tree | 1140e7da6fb24f876b33173403e3ab4f9d2694fa /scripts/gcc-plugins/randomize_layout_plugin.c | |
| parent | ipmi_si: Fix error handling of platform device (diff) | |
| download | kernel-1b4254cee0643ae624d33481b5107b790ae581b9.tar.gz kernel-1b4254cee0643ae624d33481b5107b790ae581b9.zip | |
ipmi: use correct string length
gcc-8 reports
drivers/char/ipmi/ipmi_msghandler.c: In function
'panic_op_write_handler':
./include/linux/string.h:245:9: warning: '__builtin_strncpy' specified
bound 16 equals destination size [-Wstringop-truncation]
drivers/char/ipmi/ipmi_watchdog.c: In function 'set_param_str':
./include/linux/string.h:245:9: warning: '__builtin_strncpy' specified
bound 16 equals destination size [-Wstringop-truncation]
We need one less byte or call strlcpy() to make it a nul-terminated
string.
Signed-off-by: Xiongfeng Wang <[email protected]>
Signed-off-by: Corey Minyard <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/randomize_layout_plugin.c')
0 files changed, 0 insertions, 0 deletions
