Skip to content
Commit 9276dfd2 authored by Chen Gang's avatar Chen Gang Committed by Benjamin Herrenschmidt
Browse files

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: default avatarChen Gang <gang.chen@asianux.com>
Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
parent 6b6680c4
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment