From: Stefan Weil Date: Sun, 30 Jan 2011 10:31:26 +0000 (+0000) Subject: isdn: icn: Fix potentially wrong string handling X-Git-Tag: v2.6.38-rc4~15^2~24 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a29ae23f687649c35b1520a8f986497637a0cc62;p=pandora-kernel.git 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 Cc: "David S. Miller" Cc: Tejun Heo Cc: Steven Rostedt Cc: netdev@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Stefan Weil Signed-off-by: David S. Miller --- Reading git-diff-tree failed