summaryrefslogtreecommitdiff
path: root/gdb/event-top.c
diff options
context:
space:
mode:
authorMartin Hunt <hunt@redhat.com>2002-07-03 20:27:12 +0000
committerMartin Hunt <hunt@redhat.com>2002-07-03 20:27:12 +0000
commitdf3c240b32b17897d56996360c3e11c1a8c30c0b (patch)
treefaa8d7f5ab3d94c2e95376496964d42593bc73e1 /gdb/event-top.c
parent23adea157f2cbb63d038de11c3c9e5deaf1293e2 (diff)
downloadgdb-df3c240b32b17897d56996360c3e11c1a8c30c0b.tar.gz
2002-07-03 Martin M. Hunt <hunt@redhat.com>
* event-top.c (command_line_handler): Don't read past beginning of buffer.
Diffstat (limited to 'gdb/event-top.c')
-rw-r--r--gdb/event-top.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/event-top.c b/gdb/event-top.c
index 823a3e1f68d..86c658d030e 100644
--- a/gdb/event-top.c
+++ b/gdb/event-top.c
@@ -683,7 +683,7 @@ command_line_handler (char *rl)
xfree (rl); /* Allocated in readline. */
- if (*(p - 1) == '\\')
+ if (p > linebuffer && *(p - 1) == '\\')
{
p--; /* Put on top of '\'. */