From: Jim Meyering Date: Thu, 26 Apr 2012 16:35:12 +0000 (+0200) Subject: Btrfs: avoid buffer overrun in btrfs_printk X-Git-Tag: v3.5-rc1~17^2~1^2~22 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f07c9a79f06cd33b1c9c2c4eacb60bafa7e3f310;p=pandora-kernel.git Btrfs: avoid buffer overrun in btrfs_printk The buffer read-overrun would be triggered by a printk format starting with , where N is a single digit. NUL-terminate after strncpy. Use memcpy, not strncpy, since we know the string we're copying fits in the destination buffer and contains no NUL byte. Signed-off-by: Jim Meyering --- Reading git-diff-tree failed