From: Larry Finger <Larry.Finger@lwfinger.net>
To: gregkh@linuxfoundation.org
Cc: netdev@vger.kernel.org, devel@driverdev.osuosl.org,
Larry Finger <Larry.Finger@lwfinger.net>
Subject: [PATCH v2 0/2] staging: Fix some warnings from strncpy()
Date: Mon, 27 Aug 2018 13:46:44 -0500 [thread overview]
Message-ID: <20180827184646.10276-1-Larry.Finger@lwfinger.net> (raw)
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
next reply other threads:[~2018-08-27 22:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-27 18:46 Larry Finger [this message]
2018-08-27 18:46 ` [PATCH v2 1/2] staging: rtl8192e: Fix compiler warning from strncpy() Larry Finger
2018-08-27 18:46 ` [PATCH v2 2/2] staging: rtl8712u: Fix compiler warning about strncpy Larry Finger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180827184646.10276-1-Larry.Finger@lwfinger.net \
--to=larry.finger@lwfinger.net \
--cc=devel@driverdev.osuosl.org \
--cc=gregkh@linuxfoundation.org \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox