All of lore.kernel.org
 help / color / mirror / Atom feed
* normal/cmdline bug & patch
@ 2004-06-15 11:31 Tomas Ebenlendr
  2004-06-15 11:39 ` Tomas Ebenlendr
  0 siblings, 1 reply; 32+ messages in thread
From: Tomas Ebenlendr @ 2004-06-15 11:31 UTC (permalink / raw)
  To: grub-devel


My grub sumetimes prevent to boot / unload normal mode. Here is patch
after 2 days work. (I made grub to log to LPT, this can bochs save to
file, it is not clean patch, so I don't post it here.)

Here is bugfix:

"hist_end - i" cannot be greater than hist_size, but it can be smaller
than zero

--- grub2_x/normal/cmdline.c	2004-06-05 00:20:18.000000000 +0200
+++ grub2_patched/normal/cmdline.c	2004-06-15 13:18:59.000000000 +0200
@@ -55,8 +55,8 @@
 	  for (i = 0; i < delsize; i++)
 	    {
 	      int pos = hist_end - i;
-	      if (pos > hist_size)
-		pos -= hist_size;
+	      if (pos < hist_size)
+		pos += hist_size;
 	      grub_free (old_hist_lines[pos]);
 	    }
 
-- 
                                 Tomas 'ebi' Ebenlendr
                                 http://get.to/ebik
                                 PF 2004.45508177747




^ permalink raw reply	[flat|nested] 32+ messages in thread

end of thread, other threads:[~2004-06-27 11:10 UTC | newest]

Thread overview: 32+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-15 11:31 normal/cmdline bug & patch Tomas Ebenlendr
2004-06-15 11:39 ` Tomas Ebenlendr
2004-06-15 13:45   ` Tomas Ebenlendr
2004-06-15 14:16     ` Marco Gerards
2004-06-15 16:22       ` Tomas Ebenlendr
2004-06-15 18:03         ` Tomas Ebenlendr
2004-06-15 20:36           ` Marco Gerards
2004-06-16  8:48             ` Tomas Ebenlendr
2004-06-18 20:54               ` Marco Gerards
2004-06-18 21:27                 ` Tomas Ebenlendr
2004-06-27 11:07                   ` Marco Gerards
2004-06-16  9:17             ` Yoshinori K. Okuji
2004-06-16 11:32               ` Marco Gerards
2004-06-16 12:33                 ` Marco Gerards <metgerards@student.han.nl> Tomas Ebenlendr
2004-06-16 12:36                   ` sorry Tomas Ebenlendr
2004-06-15 19:06         ` normal/cmdline bug & patch Marco Gerards
     [not found]           ` <20040615191931.GA18736@artax.karlin.mff.cuni.cz>
     [not found]             ` <873c4wh6um.fsf@marco.marco-g.com>
     [not found]               ` <20040616084333.GA17615@artax.karlin.mff.cuni.cz>
     [not found]                 ` <87pt7zag0e.fsf@marco.marco-g.com>
2004-06-16 11:50                   ` Tomas Ebenlendr
2004-06-18 10:45                     ` Yoshinori K. Okuji
2004-06-18 10:46                       ` Tomas Ebenlendr
2004-06-18 10:52                       ` Marco Gerards
2004-06-18 11:38                         ` Tomas Ebenlendr
2004-06-18 11:44                           ` Marco Gerards
2004-06-18 12:04                             ` Autoloading WAS: " Tomas Ebenlendr
2004-06-18 13:51                               ` Marco Gerards
2004-06-18 18:50                                 ` Marco Gerards
2004-06-18 19:16                                   ` Tomas Ebenlendr
2004-06-18 19:14                                 ` Tomas Ebenlendr
2004-06-19 15:05                                   ` Yoshinori K. Okuji
2004-06-19 16:01                                     ` Marco Gerards
2004-06-19 16:27                                       ` Jeroen Dekkers
2004-06-20 18:54                                       ` Yoshinori K. Okuji
2004-06-20  2:02                                     ` Tomas Ebenlendr

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.