summaryrefslogtreecommitdiff
path: root/gdb/expprint.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/expprint.c')
-rw-r--r--gdb/expprint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/expprint.c b/gdb/expprint.c
index 129dfa70b0..c8eef5e9c9 100644
--- a/gdb/expprint.c
+++ b/gdb/expprint.c
@@ -670,7 +670,7 @@ op_name_standard (enum exp_opcode opcode)
{
static char buf[30];
- sprintf (buf, "<unknown %d>", opcode);
+ xsnprintf (buf, sizeof (buf), "<unknown %d>", opcode);
return buf;
}
#define OP(name) \