Messages in this thread | | | From | Rickard Strandqvist <> | 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 |
| |
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
| |