diff options
Diffstat (limited to 'gdb/xml-syscall.c')
-rw-r--r-- | gdb/xml-syscall.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/xml-syscall.c b/gdb/xml-syscall.c index ea85a2c..255d816 100644 --- a/gdb/xml-syscall.c +++ b/gdb/xml-syscall.c @@ -376,7 +376,7 @@ xml_list_of_syscalls (struct gdbarch *gdbarch) return NULL; nsyscalls = VEC_length (syscall_desc_p, syscalls_info->syscalls); - names = xmalloc ((nsyscalls + 1) * sizeof (char *)); + names = XNEWVEC (const char *, nsyscalls + 1); for (i = 0; VEC_iterate (syscall_desc_p, syscalls_info->syscalls, i, sysdesc); |