diff options
Diffstat (limited to 'gdb/tui/tui-io.c')
-rw-r--r-- | gdb/tui/tui-io.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/tui/tui-io.c b/gdb/tui/tui-io.c index 29c1a2c..fe88f1a 100644 --- a/gdb/tui/tui-io.c +++ b/gdb/tui/tui-io.c @@ -419,7 +419,8 @@ tui_rl_display_match_list (char **matches, int len, int max) { char msg[256]; - sprintf (msg, "\nDisplay all %d possibilities? (y or n)", len); + xsnprintf (msg, sizeof (msg), + "\nDisplay all %d possibilities? (y or n)", len); tui_puts (msg); if (get_y_or_n () == 0) { |