commit | de9b58400a3ce6b9b6cc45f66c3f5e3d754becf1 | [log] [tgz] |
---|---|---|
author | Michael Straube <straube.linux@gmail.com> | Thu Jul 12 18:16:13 2018 +0200 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Fri Jul 13 11:37:34 2018 +0200 |
tree | 77146a9a360bba081d2be6f75fecf16eac05a088 | |
parent | a796528951e25a9ee635bd22d0a6e2c4fb2bd45c [diff] |
staging: rtl8188eu: use strlcpy instead of strncpy Use strlcpy instead of strncpy to avoid gcc 8 warning: warning: '__builtin_strncpy' specified bound 16 equals destination size [-Wstringop-truncation] The maximum length of the source string including terminating null is 5. Hence it always fits in the destination buffer of length 16. Signed-off-by: Michael Straube <straube.linux@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>