mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 09:08:59 +00:00
2002-07-03 Martin M. Hunt <hunt@redhat.com>
* event-top.c (command_line_handler): Don't read past
beginning of buffer.
This commit is contained in:
@@ -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 '\'. */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user