From: Chen Gang Date: Mon, 25 Feb 2013 17:43:25 +0000 (+0000) Subject: drivers/tty/hvc: Use strlcpy instead of strncpy X-Git-Tag: v3.9-rc2~22^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9276dfd27897a0b29d8b5814f39a1f82f56b6b6b;p=pandora-kernel.git drivers/tty/hvc: Use strlcpy instead of strncpy when strlen pi->location_code is larger than HVCS_CLC_LENGTH + 1, original implementation can not let hvcsd->p_location_code NUL terminated. so need fix it (also can simplify the code) Signed-off-by: Chen Gang Signed-off-by: Benjamin Herrenschmidt --- Reading git-diff-tree failed