aboutsummaryrefslogtreecommitdiff
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
commit4dd79c29b4a65ae1ff861c3e9d42f190f6846770 (patch)
tree4864519e5a32eddb995446c54992fc166d15181d /gdb/event-top.c
parente64d9b3dea5a099bcb97984fed54ab14f967b02f (diff)
downloadgdb-4dd79c29b4a65ae1ff861c3e9d42f190f6846770.zip
gdb-4dd79c29b4a65ae1ff861c3e9d42f190f6846770.tar.gz
gdb-4dd79c29b4a65ae1ff861c3e9d42f190f6846770.tar.bz2
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 823a3e1..86c658d 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 '\'. */