diff options
author | Stefan Weil <weil@mail.berlios.de> | 2011-01-30 11:31:26 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-02-01 23:17:51 +0100 |
commit | a29ae23f687649c35b1520a8f986497637a0cc62 (patch) | |
tree | 23590d84873e98c1eef7ca50e5d78bd3ad4b2f6e /.mailmap | |
parent | bnx2x: multicasts in NPAR mode (diff) | |
download | linux-a29ae23f687649c35b1520a8f986497637a0cc62.tar.xz linux-a29ae23f687649c35b1520a8f986497637a0cc62.zip |
isdn: icn: Fix potentially wrong string handling
This warning was reported by cppcheck:
drivers/isdn/icn/icn.c:1641: error: Dangerous usage of 'rev' (strncpy doesn't always 0-terminate it)
If strncpy copied 20 bytes, the destination string rev was not terminated.
The patch adds one more byte to rev and makes sure that this byte is
always 0.
Cc: Karsten Keil <isdn@linux-pingi.de>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Tejun Heo <tj@kernel.org>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: netdev@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '.mailmap')
0 files changed, 0 insertions, 0 deletions