Skip to content
Snippets Groups Projects
Commit be66db07 authored by Jan Kratochvil's avatar Jan Kratochvil
Browse files

gdb/

	* cli/cli-script.c (process_next_line): Check P2 overrun.
parent dc3cf14f
No related branches found
No related tags found
No related merge requests found
2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
* cli/cli-script.c (process_next_line): Check P2 overrun.
2009-01-01 Joel Brobecker <brobecker@adacore.com>
Update the copyright hearder to add year 2010 for most GDB files.
......
......@@ -893,7 +893,7 @@ process_next_line (char *p, struct command_line **command, int parse_commands)
p2 = p;
/* Strip leading whitespace. */
while (*p2 == ' ' || *p2 == '\t')
while (p2 != p1 && (*p2 == ' ' || *p2 == '\t'))
p2++;
/* 'end' is always recognized, regardless of parse_commands value.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment