* grub-core/normal/term.c (read_terminal_list): Terminate the terminal

name with \0.
This commit is contained in:
Vladimir 'phcoder' Serbinenko committed 2012-05-23 09:09:36 +02:00
1 parent 8f803a5d1f
commit c2a51adee8
2 files changed
+6

No files matched your search

+5
View File
@@ -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> 2012-05-22 Jordan Uggla <jordan.uggla@gmail.com>
* docs/grub-dev.texi: Remove dot from .png. * docs/grub-dev.texi: Remove dot from .png.
+1
View File
@@ -368,6 +368,7 @@ read_terminal_list (const char *prefix)
p = grub_strchr (name, ':'); p = grub_strchr (name, ':');
if (! p) if (! p)
continue; continue;
*p = 0;
p++; p++;
while (*p == ' ' || *p == '\t') while (*p == ' ' || *p == '\t')