Re: [PATCH] drivers/video: Fix -Wstringop-truncation in hdmi.c

2020-11-01 Thread Thomas Zimmermann
Hi Am 01.11.20 um 10:50 schrieb Sam Ravnborg: > On Wed, Oct 21, 2020 at 02:12:41PM +0200, Thomas Zimmermann wrote: >> Trying to copy into the string fields with strncpy() gives a warning from >> gcc. Both fields are part of a packed HDMI header and do not require a >> terminating \0 character. >>

Re: [PATCH] drivers/video: Fix -Wstringop-truncation in hdmi.c

2020-11-01 Thread Sam Ravnborg
On Wed, Oct 21, 2020 at 02:12:41PM +0200, Thomas Zimmermann wrote: > Trying to copy into the string fields with strncpy() gives a warning from > gcc. Both fields are part of a packed HDMI header and do not require a > terminating \0 character. > > ../drivers/video/hdmi.c: In function 'hdmi_spd_inf

Re: [PATCH] drivers/video: Fix -Wstringop-truncation in hdmi.c

2020-10-22 Thread Thomas Zimmermann
Hi On 22.10.20 01:06, Laurent Pinchart wrote: > Hi Thomas, > > Thank you for the patch. > > On Wed, Oct 21, 2020 at 02:12:41PM +0200, Thomas Zimmermann wrote: >> Trying to copy into the string fields with strncpy() gives a warning from >> gcc. Both fields are part of a packed HDMI header and do

Re: [PATCH] drivers/video: Fix -Wstringop-truncation in hdmi.c

2020-10-21 Thread Laurent Pinchart
Hi Thomas, Thank you for the patch. On Wed, Oct 21, 2020 at 02:12:41PM +0200, Thomas Zimmermann wrote: > Trying to copy into the string fields with strncpy() gives a warning from > gcc. Both fields are part of a packed HDMI header and do not require a > terminating \0 character. > > ../drivers/v

[PATCH] drivers/video: Fix -Wstringop-truncation in hdmi.c

2020-10-21 Thread Thomas Zimmermann
Trying to copy into the string fields with strncpy() gives a warning from gcc. Both fields are part of a packed HDMI header and do not require a terminating \0 character. ../drivers/video/hdmi.c: In function 'hdmi_spd_infoframe_init': ../drivers/video/hdmi.c:230:2: warning: 'strncpy' specified bou