commit-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[2445] 2009-07-25 Vladimir Serbinenko <address@hidden>


From: Vladimir Serbinenko
Subject: [2445] 2009-07-25 Vladimir Serbinenko <address@hidden>
Date: Sat, 25 Jul 2009 15:13:07 +0000

Revision: 2445
          http://svn.sv.gnu.org/viewvc/?view=rev&root=grub&revision=2445
Author:   phcoder
Date:     2009-07-25 15:13:07 +0000 (Sat, 25 Jul 2009)
Log Message:
-----------
2009-07-25  Vladimir Serbinenko  <address@hidden>

        * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
        entries on failed boot.

Modified Paths:
--------------
    trunk/grub2/ChangeLog
    trunk/grub2/kern/parser.c

Modified: trunk/grub2/ChangeLog
===================================================================
--- trunk/grub2/ChangeLog       2009-07-25 09:30:25 UTC (rev 2444)
+++ trunk/grub2/ChangeLog       2009-07-25 15:13:07 UTC (rev 2445)
@@ -1,3 +1,8 @@
+2009-07-25  Vladimir Serbinenko  <address@hidden>
+
+       * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
+       entries on failed boot.
+
 2009-07-25  Felix Zielcke  <address@hidden>
 
        * kern/file.c (grub_file_open): Fix an error check.

Modified: trunk/grub2/kern/parser.c
===================================================================
--- trunk/grub2/kern/parser.c   2009-07-25 09:30:25 UTC (rev 2444)
+++ trunk/grub2/kern/parser.c   2009-07-25 15:13:07 UTC (rev 2445)
@@ -245,10 +245,12 @@
 
       p = grub_strchr (source, '\n');
       if (p)
-       *(p++) = 0;
+       *p = 0;
 
       *line = grub_strdup (source);
-      source = p;
+      if (p)
+       *p = '\n';
+      source = p ? p + 1 : 0;
       return 0;
     }
 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]