diff options
author | Chen Gang <gang.chen@asianux.com> | 2013-02-25 17:43:25 +0000 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2013-03-05 16:56:27 +1100 |
commit | 9276dfd27897a0b29d8b5814f39a1f82f56b6b6b (patch) | |
tree | 2a34180edd2663c594212aa8e51fa909a359692e /drivers/md/dm-path-selector.h | |
parent | 6b6680c4ea3952af8ae76915cbca41245147741b (diff) | |
download | linux-9276dfd27897a0b29d8b5814f39a1f82f56b6b6b.tar.bz2 |
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>
Diffstat (limited to 'drivers/md/dm-path-selector.h')
0 files changed, 0 insertions, 0 deletions