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

Unified Diff: gdb/cli-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/cli-out.h ('k') | gdb/cli/cli-cmds.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gdb/cli-out.c
diff --git a/gdb/cli-out.c b/gdb/cli-out.c
index 925206c5353973e5c5b902dd12f72ae195141909..380b662e045e58674c6eebdc7ee7b3fb5b1d6b18 100644
--- a/gdb/cli-out.c
+++ b/gdb/cli-out.c
@@ -1,7 +1,6 @@
/* Output generating routines for GDB CLI.
- Copyright (C) 1999-2000, 2002-2003, 2005, 2007-2012 Free Software
- Foundation, Inc.
+ Copyright (C) 1999-2013 Free Software Foundation, Inc.
Contributed by Cygnus Solutions.
Written by Fernando Nasser for Cygnus.
@@ -24,7 +23,7 @@
#include "defs.h"
#include "ui-out.h"
#include "cli-out.h"
-#include "gdb_string.h"
+#include <string.h>
#include "gdb_assert.h"
#include "vec.h"
@@ -139,7 +138,7 @@ cli_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);
/* Always go through the function pointer (virtual function call).
We may have been extended. */
@@ -371,6 +370,7 @@ struct ui_out_impl cli_ui_out_impl =
cli_wrap_hint,
cli_flush,
cli_redirect,
+ 0,
0, /* Does not need MI hacks (i.e. needs CLI hacks). */
};
« no previous file with comments | « gdb/cli-out.h ('k') | gdb/cli/cli-cmds.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698