Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752080AbaG0LtB (ORCPT ); Sun, 27 Jul 2014 07:49:01 -0400 Received: from mail-wi0-f175.google.com ([209.85.212.175]:38333 "EHLO mail-wi0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750885AbaG0Ls6 (ORCPT ); Sun, 27 Jul 2014 07:48:58 -0400 From: Rickard Strandqvist To: Ursula Braun , Frank Blaschka Cc: Rickard Strandqvist , linux390@de.ibm.com, Martin Schwidefsky , Heiko Carstens , linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] s390: net: claw.c: Fix a define larger than in a sizeof in conjunction with strncpy Date: Sun, 27 Jul 2014 13:50:21 +0200 Message-Id: <1406461822-11249-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 Tried also optimize and clarify what youare after here, although this is a string of 7 characters, to overwrite the dual hardly matters :) Probably it would have been clearer to use snprintf with "%s " , but the solution is a bit slower though...? Rickard Strandqvist (1): s390: net: claw.c: Fix a define larger than in a sizeof in conjunction with strncpy drivers/s390/net/claw.c | 31 +++++++++++++++++++------------ 1 file changed, 19 insertions(+), 12 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/