Arnd Bergmann ade7db991b cifs: silence compiler warnings showing up with gcc-8.0.0
This bug was fixed before, but came up again with the latest
compiler in another function:

fs/cifs/cifssmb.c: In function 'CIFSSMBSetEA':
fs/cifs/cifssmb.c:6362:3: error: 'strncpy' offset 8 is out of the bounds [0, 4] [-Werror=array-bounds]
   strncpy(parm_data->list[0].name, ea_name, name_len);

Let's apply the same fix that was used for the other instances.

Fixes: b2a3ad9ca502 ("cifs: silence compiler warnings showing up with gcc-4.7.0")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Steve French <smfrench@gmail.com>
2018-02-07 09:36:41 -06:00
..
2018-01-29 06:42:20 -05:00
2018-01-29 13:33:53 -08:00
2017-12-17 12:20:58 -08:00
2017-11-27 16:20:05 -05:00
2018-01-29 06:42:20 -05:00
2017-11-16 11:41:22 -08:00
2018-01-24 17:33:57 -05:00
2018-01-29 13:33:53 -08:00
2018-01-01 10:09:33 -05:00
2017-09-04 19:05:15 -04:00
2017-04-17 12:52:27 -04:00
2018-01-03 10:13:36 -08:00
2017-12-07 14:23:30 -05:00
2018-01-29 07:27:24 -08:00
2018-02-01 09:51:57 -08:00
2017-12-09 20:16:33 -05:00
2017-11-27 16:20:05 -05:00
2017-11-27 16:20:05 -05:00
2017-11-27 16:20:05 -05:00