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

Unified Diff: gdb/tui/tui-win.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/tui/tui-win.h ('k') | gdb/tui/tui-windata.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gdb/tui/tui-win.c
diff --git a/gdb/tui/tui-win.c b/gdb/tui/tui-win.c
index c12f036d501896cab5bfe4e550ecfd4e3a4b4095..78345122263f7a65247bca5f60cdc5e12e8c6577 100644
--- a/gdb/tui/tui-win.c
+++ b/gdb/tui/tui-win.c
@@ -1,6 +1,6 @@
/* TUI window generic functions.
- Copyright (C) 1998-2004, 2006-2012 Free Software Foundation, Inc.
+ Copyright (C) 1998-2013 Free Software Foundation, Inc.
Contributed by Hewlett-Packard Company.
@@ -46,7 +46,7 @@
#include "gdb_curses.h"
-#include "gdb_string.h"
+#include <string.h>
#include <ctype.h>
#include "readline/readline.h"
@@ -466,10 +466,10 @@ tui_update_gdb_sizes (void)
char cmd[50];
/* Set to TUI command window dimension or use readline values. */
- sprintf (cmd, "set width %d",
+ xsnprintf (cmd, sizeof (cmd), "set width %d",
tui_active ? TUI_CMD_WIN->generic.width : tui_term_width());
execute_command (cmd, 0);
- sprintf (cmd, "set height %d",
+ xsnprintf (cmd, sizeof (cmd), "set height %d",
tui_active ? TUI_CMD_WIN->generic.height : tui_term_height());
execute_command (cmd, 0);
}
« no previous file with comments | « gdb/tui/tui-win.h ('k') | gdb/tui/tui-windata.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698