staging: rtl8192e: Fix compiler warning from strncpy()
authorLarry Finger <Larry.Finger@lwfinger.net>
Mon, 27 Aug 2018 18:46:45 +0000 (13:46 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 Sep 2018 08:18:32 +0000 (10:18 +0200)
commit86eac24dbb7b0acc8608a52d42bc18e85c78d7ff
treec8750d6065612e7e7807242d793751cfa2058a14
parentf72403461bd40658fe483c4caba592c55b84521a
staging: rtl8192e: Fix compiler warning from strncpy()

When strncpy() is called with source and destination strings the same
length, gcc 8 warns that there may be an unterminated string. This section
is completely reworked to use the known lengths of the strings.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtllib_softmac.c