kdb: kdb_support: replace strcpy() by strscpy()
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Mon, 22 Apr 2019 16:21:06 +0000 (11:21 -0500)
committerDaniel Thompson <daniel.thompson@linaro.org>
Thu, 2 May 2019 12:42:01 +0000 (13:42 +0100)
commit9b555c4d784c468b4167eef9ab621b5203e4f479
tree3afdea84bab9fc993497c06aefc6ac8c3c8fd753
parent4cc168eaf3b67d76547fb420c22abe22a3c86003
kdb: kdb_support: replace strcpy() by strscpy()

The strcpy() function is being deprecated. Replace it by the safer
strscpy() and fix the following Coverity warning:

"You might overrun the 129-character fixed-size string ks_namebuf
by copying name without checking the length."

Addresses-Coverity-ID: 138995 ("Copy into fixed size buffer")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org>
kernel/debug/kdb/kdb_support.c