]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/normal/term.c (read_terminal_list): Terminate the terminal
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Wed, 23 May 2012 07:09:36 +0000 (09:09 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Wed, 23 May 2012 07:09:36 +0000 (09:09 +0200)
name with \0.

ChangeLog
grub-core/normal/term.c

index c6a18945d871c775509d95b26a604b9c9e9e3cf0..96cfb6b4f2d909685b0cd06370d08cb7eba15e8a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2012-05-23  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * grub-core/normal/term.c (read_terminal_list): Terminate the terminal
+       name with \0.
+
 2012-05-22  Jordan Uggla  <jordan.uggla@gmail.com>
 
        * docs/grub-dev.texi: Remove dot from .png.
index ffb3bfeac8f3b17802cf2e915b856bd7be0f19f4..dc5fdcb1df8080dc746806ab66f508113e0b9138 100644 (file)
@@ -368,6 +368,7 @@ read_terminal_list (const char *prefix)
       p = grub_strchr (name, ':');
       if (! p)
        continue;
+      *p = 0;
 
       p++;
       while (*p == ' ' || *p == '\t')