lkml.org 
[lkml]   [2014]   [Jul]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH] s390: net: claw.c: Fix a define larger than in a sizeof in conjunction with strncpy
Date
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



\
 
 \ /
  Last update: 2014-07-27 14:21    [W:0.063 / U:0.060 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site