diff options
author | Tom Tromey <tromey@redhat.com> | 2009-09-23 17:33:05 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2009-09-23 17:33:05 +0000 |
commit | df45e08aef3d6f2c09a3123ef6a61eaf678c2f6d (patch) | |
tree | 7c7aa278ebe693454d1e0255b08237f03051535e /gdb/event-top.c | |
parent | ea8d07979868004b276ec6ddbf216eaf727e08cf (diff) | |
download | gdb-df45e08aef3d6f2c09a3123ef6a61eaf678c2f6d.tar.gz |
2009-09-23 John Wright <john.wright@hp.com>
PR gdb/10684:
* event-top.c (command_line_handler): Terminate linebuffer before
xstrdup.
Diffstat (limited to 'gdb/event-top.c')
-rw-r--r-- | gdb/event-top.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/event-top.c b/gdb/event-top.c index 790cebff310..52a5ad75d4c 100644 --- a/gdb/event-top.c +++ b/gdb/event-top.c @@ -622,6 +622,7 @@ command_line_handler (char *rl) if (p > linebuffer && *(p - 1) == '\\') { + *p = '\0'; p--; /* Put on top of '\'. */ readline_input_state.linebuffer = xstrdup (linebuffer); |