Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(200)

Unified Diff: gdb/mi/mi-out.c

Issue 124383005: GDB 7.6.50 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@upstream
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gdb/mi/mi-out.h ('k') | gdb/mi/mi-parse.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « gdb/mi/mi-out.h ('k') | gdb/mi/mi-parse.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698