diff options
Diffstat (limited to 'gdb/varobj.c')
-rw-r--r-- | gdb/varobj.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/varobj.c b/gdb/varobj.c index 2a95c86..74a06d9 100644 --- a/gdb/varobj.c +++ b/gdb/varobj.c @@ -529,7 +529,7 @@ varobj_delete (struct varobj *var, char ***dellist, int only_children) /* We may have been asked to return a list of what has been deleted. */ if (dellist != NULL) { - *dellist = xmalloc ((delcount + 1) * sizeof (char *)); + *dellist = XNEWVEC (char *, delcount + 1); cp = *dellist; mycount = delcount; @@ -2610,7 +2610,7 @@ varobj_value_get_print_value (struct value *value, } len = strlen (s); - thevalue = xmemdup (s, len + 1, len + 1); + thevalue = (char *) xmemdup (s, len + 1, len + 1); type = builtin_type (gdbarch)->builtin_char; xfree (s); |