[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1406461822-11249-1-git-send-email-rickard_strandqvist@spectrumdigital.se>
Date: Sun, 27 Jul 2014 13:50:21 +0200
From: Rickard Strandqvist <rickard_strandqvist@...ctrumdigital.se>
To: Ursula Braun <ursula.braun@...ibm.com>,
Frank Blaschka <blaschka@...ux.vnet.ibm.com>
Cc: Rickard Strandqvist <rickard_strandqvist@...ctrumdigital.se>,
linux390@...ibm.com, Martin Schwidefsky <schwidefsky@...ibm.com>,
Heiko Carstens <heiko.carstens@...ibm.com>,
linux-s390@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH] s390: net: claw.c: Fix a define larger than in a sizeof in conjunction with strncpy
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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists