mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-05-31 10:09:16 +08:00
remove use of sprintf in py-finishbreakpoint.c...
... and replace it with call to xsnprintf, following GDB's coding rules. gdb/ChangeLog: * py-finishbreakpoint.c (bpfinishpy_init): Replace call to sprintf by call to xsnprintf.
This commit is contained in:
@ -277,7 +277,7 @@ bpfinishpy_init (PyObject *self, PyObject *args, PyObject *kwargs)
|
||||
{
|
||||
/* Set a breakpoint on the return address. */
|
||||
finish_pc = get_frame_pc (prev_frame);
|
||||
sprintf (small_buf, "*%s", hex_string (finish_pc));
|
||||
xsnprintf (small_buf, sizeof (small_buf), "*%s", hex_string (finish_pc));
|
||||
addr_str = small_buf;
|
||||
|
||||
create_breakpoint (python_gdbarch,
|
||||
|
Reference in New Issue
Block a user