fix off-by-one error in menuentry cmd
This commit is contained in:
parent
37effddaf3
commit
a929c8cd1e
2 changed files with 6 additions and 1 deletions
|
@ -76,7 +76,7 @@ grub_script_lexer_record_stop (struct grub_parser_param *parser)
|
|||
while (*end && grub_isspace (*end)) end--;
|
||||
if (*end == '}') end--;
|
||||
while (*end && grub_isspace (*end)) end--;
|
||||
*end = '\0';
|
||||
end[1] = '\0';
|
||||
|
||||
return start;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue