Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753546AbaG3WOg (ORCPT ); Wed, 30 Jul 2014 18:14:36 -0400 Received: from mail-lb0-f180.google.com ([209.85.217.180]:38319 "EHLO mail-lb0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750978AbaG3WOd (ORCPT ); Wed, 30 Jul 2014 18:14:33 -0400 From: Rickard Strandqvist To: Brian King , "James E.J. Bottomley" Cc: Rickard Strandqvist , Grant Likely , Rob Herring , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH] scsi: ibmvscsi: ibmvfc.c: Cleaning up missing null-terminate in conjunction with strncpy Date: Thu, 31 Jul 2014 00:15:58 +0200 Message-Id: <1406758559-20836-1-git-send-email-rickard_strandqvist@spectrumdigital.se> X-Mailer: git-send-email 1.7.10.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org And as I understand it, it is fine to replace strncpy to strlcpy here. But if any of this code do not want a null terminated, or want to have the whole rest of size filled with null characters. If that is the case this is not a good patch. Rickard Strandqvist (1): scsi: ibmvscsi: ibmvfc.c: Cleaning up missing null-terminate in conjunction with strncpy drivers/scsi/ibmvscsi/ibmvfc.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) -- 1.7.10.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/