Netdev List
 help / color / mirror / Atom feed
* [PATCH v2 0/2] staging: Fix some warnings from strncpy()
@ 2018-08-27 18:46 Larry Finger
  2018-08-27 18:46 ` [PATCH v2 1/2] staging: rtl8192e: Fix compiler warning " Larry Finger
  2018-08-27 18:46 ` [PATCH v2 2/2] staging: rtl8712u: Fix compiler warning about strncpy Larry Finger
  0 siblings, 2 replies; 3+ messages in thread
From: Larry Finger @ 2018-08-27 18:46 UTC (permalink / raw)
  To: gregkh; +Cc: netdev, devel, Larry Finger

When the size argument in a call to strncpy() is the size of the
destimation, gcc8 issues a warning. These patches fix the potential
problem.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>

v2 - The code is changed to implement the comments of David Laight.

Larry Finger (2):
  staging: rtl8192e: Fix compiler warning about strncpy
  staging: rtl8712u: Fix compiler warning about strncpy

 drivers/staging/rtl8192e/rtllib_softmac.c     | 4 ++--
 drivers/staging/rtl8712/rtl871x_ioctl_linux.c | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

-- 
2.18.0

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-08-27 22:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-27 18:46 [PATCH v2 0/2] staging: Fix some warnings from strncpy() Larry Finger
2018-08-27 18:46 ` [PATCH v2 1/2] staging: rtl8192e: Fix compiler warning " Larry Finger
2018-08-27 18:46 ` [PATCH v2 2/2] staging: rtl8712u: Fix compiler warning about strncpy Larry Finger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox