From mboxrd@z Thu Jan 1 00:00:00 1970 From: Larry Finger Subject: [PATCH v2 0/2] staging: Fix some warnings from strncpy() Date: Mon, 27 Aug 2018 13:46:44 -0500 Message-ID: <20180827184646.10276-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-f68.google.com ([209.85.218.68]:39475 "EHLO mail-oi0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726939AbeH0Wei (ORCPT ); Mon, 27 Aug 2018 18:34:38 -0400 Received: by mail-oi0-f68.google.com with SMTP id c190-v6so29148927oig.6 for ; Mon, 27 Aug 2018 11:46:51 -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. Signed-off-by: Larry Finger 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