grub_strcpy since the lines aren't necessarily 0-terminated.
+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>
* grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
size = 0;
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;
source[size++] = '\n';
}