Chen Gang 9276dfd278 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 <gang.chen@asianux.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
2013-03-05 16:56:27 +11:00
..
2012-01-26 17:14:50 -08:00
2013-01-15 22:30:15 -08:00
2011-09-22 16:08:57 -07:00
2011-03-31 11:26:23 -03:00
2012-01-26 17:14:50 -08:00
2012-03-09 10:35:17 +11:00