diff options
author | Pedro Alves <pedro@codesourcery.com> | 2009-05-24 18:16:53 +0000 |
---|---|---|
committer | Pedro Alves <pedro@codesourcery.com> | 2009-05-24 18:16:53 +0000 |
commit | 546da8d3a3377dc9e427f354e1edb0da4ef9b4c8 (patch) | |
tree | 2fb36c7d673fcd00f20ea942b0ebdfd7b1318a74 /gdb/inflow.c | |
parent | 0efdb1199ccffd23a13d30a9e917fb5f7182ad8b (diff) | |
download | gdb-546da8d3a3377dc9e427f354e1edb0da4ef9b4c8.tar.gz |
* inflow.c (copy_terminal_info): Deep copy `run_terminal'.
Diffstat (limited to 'gdb/inflow.c')
-rw-r--r-- | gdb/inflow.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/inflow.c b/gdb/inflow.c index d71fb8177cb..9ec45dd0901 100644 --- a/gdb/inflow.c +++ b/gdb/inflow.c @@ -492,7 +492,8 @@ copy_terminal_info (struct inferior *to, struct inferior *from) { *to->terminal_info = *from->terminal_info; if (from->terminal_info->run_terminal) - to->terminal_info->run_terminal = from->terminal_info->run_terminal; + to->terminal_info->run_terminal + = xstrdup (from->terminal_info->run_terminal); } void |