|
|
a5bd9f6 |
From 6f9a84ac7b589b9f4a65177ab64f819fdc39b09a Mon Sep 17 00:00:00 2001
|
|
|
a5bd9f6 |
From: Andrey Borzenkov <arvidjaar@gmail.com>
|
|
|
a5bd9f6 |
Date: Mon, 25 Feb 2013 22:53:40 +0100
|
|
|
a5bd9f6 |
Subject: [PATCH 158/364] * grub-core/normal/menu_entry.c
|
|
|
a5bd9f6 |
(update_screen): remove unused variable `off' which caused scroll down
|
|
|
a5bd9f6 |
arrow to be always shown.
|
|
|
a5bd9f6 |
|
|
|
a5bd9f6 |
---
|
|
|
a5bd9f6 |
ChangeLog | 5 +++++
|
|
|
a5bd9f6 |
grub-core/normal/menu_entry.c | 3 +--
|
|
|
a5bd9f6 |
2 files changed, 6 insertions(+), 2 deletions(-)
|
|
|
a5bd9f6 |
|
|
|
a5bd9f6 |
diff --git a/ChangeLog b/ChangeLog
|
|
|
a5bd9f6 |
index cc5d5e3..1b66689 100644
|
|
|
a5bd9f6 |
--- a/ChangeLog
|
|
|
a5bd9f6 |
+++ b/ChangeLog
|
|
|
a5bd9f6 |
@@ -1,5 +1,10 @@
|
|
|
a5bd9f6 |
2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
|
|
|
a5bd9f6 |
|
|
|
a5bd9f6 |
+ * grub-core/normal/menu_entry.c (update_screen): remove
|
|
|
a5bd9f6 |
+ unused variable `off' which caused scroll down arrow to be always shown.
|
|
|
a5bd9f6 |
+
|
|
|
a5bd9f6 |
+2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
|
|
|
a5bd9f6 |
+
|
|
|
a5bd9f6 |
* grub-core/normal/menu_entry.c (insert_string): fix off by one
|
|
|
a5bd9f6 |
access to unallocated memory.
|
|
|
a5bd9f6 |
|
|
|
a5bd9f6 |
diff --git a/grub-core/normal/menu_entry.c b/grub-core/normal/menu_entry.c
|
|
|
a5bd9f6 |
index 85f97da..f4c8afd 100644
|
|
|
a5bd9f6 |
--- a/grub-core/normal/menu_entry.c
|
|
|
a5bd9f6 |
+++ b/grub-core/normal/menu_entry.c
|
|
|
a5bd9f6 |
@@ -243,7 +243,6 @@ update_screen (struct screen *screen, struct per_term_screen *term_screen,
|
|
|
a5bd9f6 |
|
|
|
a5bd9f6 |
do
|
|
|
a5bd9f6 |
{
|
|
|
a5bd9f6 |
- int off = 0;
|
|
|
a5bd9f6 |
struct grub_term_pos **pos;
|
|
|
a5bd9f6 |
|
|
|
a5bd9f6 |
if (linep >= screen->lines + screen->num_lines)
|
|
|
a5bd9f6 |
@@ -301,7 +300,7 @@ update_screen (struct screen *screen, struct per_term_screen *term_screen,
|
|
|
a5bd9f6 |
y += get_logical_num_lines (linep, term_screen);
|
|
|
a5bd9f6 |
if (y >= term_screen->num_entries)
|
|
|
a5bd9f6 |
{
|
|
|
a5bd9f6 |
- if (off <= linep->len || i + 1 < screen->num_lines)
|
|
|
a5bd9f6 |
+ if (i + 1 < screen->num_lines)
|
|
|
a5bd9f6 |
down_flag = 1;
|
|
|
a5bd9f6 |
}
|
|
|
a5bd9f6 |
|
|
|
a5bd9f6 |
--
|
|
|
a5bd9f6 |
1.8.1.4
|
|
|
a5bd9f6 |
|