Skip to content
Commit 4cc168ea authored by Gustavo A. R. Silva's avatar Gustavo A. R. Silva Committed by Daniel Thompson
Browse files

gdbstub: 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 1024-character fixed-size string remcom_in_buffer
by copying cmd without checking the length."

Addresses-Coverity-ID: 138999 ("Copy into fixed size buffer")
Signed-off-by: default avatarGustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: default avatarDaniel Thompson <daniel.thompson@linaro.org>
parent a5d5092c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment