aboutsummaryrefslogtreecommitdiff
path: root/gdb/common/format.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/common/format.c')
-rw-r--r--gdb/common/format.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/common/format.c b/gdb/common/format.c
index deea93c..1602e53 100644
--- a/gdb/common/format.c
+++ b/gdb/common/format.c
@@ -103,8 +103,7 @@ parse_format_string (const char **arg)
max_pieces = strlen (string) + 2;
- pieces = (struct format_piece *)
- xmalloc (max_pieces * sizeof (struct format_piece));
+ pieces = XNEWVEC (struct format_piece, max_pieces);
next_frag = 0;