mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-21 06:49:35 +00:00
* grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
grub_strcpy since the lines aren't necessarily 0-terminated.
This commit is contained in:
1 parent
7c2e4909c3
commit
d7a565e962
2 files changed
+6
-1
No files matched your search
@@ -1,3 +1,8 @@
|
|||||||
|
2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
|
* grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
|
||||||
|
grub_strcpy since the lines aren't necessarily 0-terminated.
|
||||||
|
|
||||||
2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
|
2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
* grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
|
* grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
|
||||||
|
|||||||
@@ -1185,7 +1185,7 @@ run (struct screen *screen)
|
|||||||
size = 0;
|
size = 0;
|
||||||
for (i = 0; i < screen->num_lines; i++)
|
for (i = 0; i < screen->num_lines; i++)
|
||||||
{
|
{
|
||||||
grub_strcpy (source + size, screen->lines[i].buf);
|
grub_memcpy (source + size, screen->lines[i].buf, screen->lines[i].len);
|
||||||
size += screen->lines[i].len;
|
size += screen->lines[i].len;
|
||||||
source[size++] = '\n';
|
source[size++] = '\n';
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user