From mboxrd@z Thu Jan 1 00:00:00 1970 From: Larry Finger Subject: [PATCH 0/2] staging: Fix some warnings from strncpy() Date: Mon, 20 Aug 2018 12:51:22 -0500 Message-ID: <20180820175124.23863-1-Larry.Finger@lwfinger.net> Cc: netdev@vger.kernel.org, devel@driverdev.osuosl.org, Larry Finger To: gregkh@linuxfoundation.org Return-path: Received: from mail-oi0-f65.google.com ([209.85.218.65]:37938 "EHLO mail-oi0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726077AbeHTVIH (ORCPT ); Mon, 20 Aug 2018 17:08:07 -0400 Received: by mail-oi0-f65.google.com with SMTP id v8-v6so27337032oie.5 for ; Mon, 20 Aug 2018 10:51:32 -0700 (PDT) Sender: netdev-owner@vger.kernel.org List-ID: 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 (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