netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] staging: Fix some warnings from strncpy()
@ 2018-08-20 17:51 Larry Finger
  2018-08-20 17:51 ` [PATCH 1/2] staging: rtl8192e: Fix compiler warning about strncpy Larry Finger
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Larry Finger @ 2018-08-20 17:51 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 by replacing the strncpy() with strlcpy().

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


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] 5+ messages in thread

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

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-20 17:51 [PATCH 0/2] staging: Fix some warnings from strncpy() Larry Finger
2018-08-20 17:51 ` [PATCH 1/2] staging: rtl8192e: Fix compiler warning about strncpy Larry Finger
2018-08-21 13:41   ` David Laight
2018-08-20 17:51 ` [PATCH 2/2] staging: rtl8712u: " Larry Finger
2018-08-27 17:48 ` [PATCH 0/2] staging: Fix some warnings from strncpy() Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).