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
..
2013-02-13 10:17:06 -08:00
2013-01-15 22:30:15 -08:00
2013-02-06 11:10:17 -08:00
2013-01-15 22:43:15 -08:00
2011-03-31 11:26:23 -03:00
2013-01-30 12:10:09 +01:00
2012-08-10 12:55:47 -07:00
2013-01-15 22:43:16 -08:00
2012-11-15 17:20:58 -08:00