Skip to content
Commit e802d539 authored by Keith Packard's avatar Keith Packard Committed by Carles Cufí
Browse files

x86: buf return from gdb_reg_readone is not a string



The buffer contents returned from arch_gdb_reg_readone is a counted array
of bytes, not a C string. Use memcpy instead of strcpy for the failure
return path to avoid compiler warning about missing NUL termination.

Signed-off-by: default avatarKeith Packard <keithp@keithp.com>
parent 2627063a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment