Index: gdb/mi/mi-out.c |
diff --git a/gdb/mi/mi-out.c b/gdb/mi/mi-out.c |
index b39e05a3f659c6098589846fbad2775b8cc5c367..90a4c1ce251907a8f619f4388954c60fa5aacaf5 100644 |
--- a/gdb/mi/mi-out.c |
+++ b/gdb/mi/mi-out.c |
@@ -1,7 +1,6 @@ |
/* MI Command Set - output generating routines. |
- Copyright (C) 2000, 2002-2005, 2007-2012 Free Software Foundation, |
- Inc. |
+ Copyright (C) 2000-2013 Free Software Foundation, Inc. |
Contributed by Cygnus Solutions (a Red Hat company). |
@@ -89,6 +88,7 @@ struct ui_out_impl mi_ui_out_impl = |
mi_wrap_hint, |
mi_flush, |
mi_redirect, |
+ 0, |
1, /* Needs MI hacks. */ |
}; |
@@ -198,7 +198,7 @@ mi_field_int (struct ui_out *uiout, int fldno, int width, |
if (data->suppress_output) |
return; |
- sprintf (buffer, "%d", value); |
+ xsnprintf (buffer, sizeof (buffer), "%d", value); |
mi_field_string (uiout, fldno, width, alignment, fldname, buffer); |
} |