Commit 66ce4d1a authored by Vladimir Serbinenko's avatar Vladimir Serbinenko
Browse files

grub_script_lexer_yywrap: Update len synchronously with line.

parent 59d40365
2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/script/lexer.c (grub_script_lexer_yywrap): Update len
synchronously with line.
2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
 
Replace explicit sizeof divisions by ARRAY_SIZE.
......@@ -164,6 +164,7 @@ grub_script_lexer_yywrap (struct grub_parser_param *parserstate,
{
grub_free (line);
line = grub_strdup ("\n");
len = 1;
}
else if (len && line[len - 1] != '\n')
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment