mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-22 15:22:39 +00:00
* grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.
This commit is contained in:
1 parent
05b0bb9100
commit
684aef11c5
2 files changed
+5
-1
No files matched your search
@@ -65,7 +65,7 @@ grub_file_getline (grub_file_t file)
|
||||
continue;
|
||||
|
||||
|
||||
if (pos >= max_len)
|
||||
if (pos + 1 >= max_len)
|
||||
{
|
||||
char *old_cmdline = cmdline;
|
||||
max_len = max_len * 2;
|
||||
|
||||
Reference in new issue
Block a user