fix off-by-one error in menuentry cmd

This commit is contained in:
BVK Chaitanya 2010-02-11 18:49:57 +05:30
parent 37effddaf3
commit a929c8cd1e
2 changed files with 6 additions and 1 deletions

View File

@ -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>
* script/yylex.l: Accept parenthesis as part of word.

View File

@ -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;
}