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

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