aboutsummaryrefslogtreecommitdiff
path: root/gdb/interps.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/interps.c')
-rw-r--r--gdb/interps.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/interps.c b/gdb/interps.c
index 698e26e..fc14196 100644
--- a/gdb/interps.c
+++ b/gdb/interps.c
@@ -210,8 +210,8 @@ interp_set (struct interp *interp, int top_level)
{
if (!interp_quiet_p (interp))
{
- sprintf (buffer, "Switching to interpreter \"%.24s\".\n",
- interp->name);
+ xsnprintf (buffer, sizeof (buffer),
+ "Switching to interpreter \"%.24s\".\n", interp->name);
ui_out_text (current_uiout, buffer);
}
display_gdb_prompt (NULL);