projects
/
external
/
binutils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Remove tui_clear_source_content
[external/binutils.git]
/
gdb
/
typeprint.c
diff --git
a/gdb/typeprint.c
b/gdb/typeprint.c
index
6a05200
..
c87f6d1
100644
(file)
--- a/
gdb/typeprint.c
+++ b/
gdb/typeprint.c
@@
-325,9
+325,8
@@
typedef_hash_table::find_global_typedef (const struct type_print_options *flags,
if (applied != NULL)
{
- new_tf->name
- = (const char *) obstack_copy0 (&flags->global_typedefs->m_storage,
- applied, strlen (applied));
+ new_tf->name = obstack_strdup (&flags->global_typedefs->m_storage,
+ applied);
xfree (applied);
}