diff options
Diffstat (limited to 'gdb/python')
-rw-r--r-- | gdb/python/py-finishbreakpoint.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/python/py-finishbreakpoint.c b/gdb/python/py-finishbreakpoint.c index a2d8165..c158d47 100644 --- a/gdb/python/py-finishbreakpoint.c +++ b/gdb/python/py-finishbreakpoint.c @@ -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, |