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
|
@ -1,3 +1,8 @@
|
||||||
|
2010-02-10 BVK Chaitanya <bvk.groups@gmail.com>
|
||||||
|
|
||||||
|
* script/lexer.c (grub_script_lexer_record_stop): Fix off-by-one
|
||||||
|
bug.
|
||||||
|
|
||||||
2010-01-25 BVK Chaitanya <bvk.groups@gmail.com>
|
2010-01-25 BVK Chaitanya <bvk.groups@gmail.com>
|
||||||
|
|
||||||
* script/yylex.l: Accept parenthesis as part of word.
|
* script/yylex.l: Accept parenthesis as part of word.
|
||||||
|
|
|
@ -76,7 +76,7 @@ grub_script_lexer_record_stop (struct grub_parser_param *parser)
|
||||||
while (*end && grub_isspace (*end)) end--;
|
while (*end && grub_isspace (*end)) end--;
|
||||||
if (*end == '}') end--;
|
if (*end == '}') end--;
|
||||||
while (*end && grub_isspace (*end)) end--;
|
while (*end && grub_isspace (*end)) end--;
|
||||||
*end = '\0';
|
end[1] = '\0';
|
||||||
|
|
||||||
return start;
|
return start;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue