]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit356f27e889ed0c4b9ea0b29de2779b121c9a2863
treec8750d6065612e7e7807242d793751cfa2058a14
parent9f725f801258be8423f0761bc630ec66ff03acf0
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