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-03-05 16:56:27 +11:00
2013-02-21 17:40:58 -08:00
2013-03-02 07:44:16 -08:00
2013-02-26 20:16:07 -08:00
2013-02-13 10:17:06 -08:00
2013-01-15 22:30:15 -08:00
2013-01-15 22:43:15 -08:00
2013-01-15 22:30:15 -08:00
2013-01-25 08:09:38 -08:00
2013-01-15 22:30:15 -08:00
2013-02-06 11:10:17 -08:00
2013-02-06 11:10:17 -08:00
2013-02-06 11:10:17 -08:00
2013-01-15 22:43:15 -08:00
2013-02-18 11:05:14 -08:00
2013-01-30 12:10:09 +01:00
2012-03-28 18:30:03 +01:00
2012-08-10 12:55:47 -07:00
2013-02-13 10:13:58 -08:00
2013-01-15 22:43:16 -08:00
2013-02-04 15:40:29 -08:00
2013-01-17 17:28:39 -08:00
2013-01-30 00:09:58 -05:00
2013-01-30 00:09:58 -05:00
2013-01-30 00:09:58 -05:00
2013-02-27 09:59:50 -08:00
2012-10-22 16:50:54 -07:00
2013-02-13 10:13:58 -08:00
2013-02-27 16:59:05 -05:00
2013-02-04 15:02:14 -08:00
2013-01-15 23:07:15 -08:00
2012-10-24 11:34:51 -07:00
2012-11-15 17:20:58 -08:00