diff --git a/normal/menu_entry.c b/normal/menu_entry.c index 5faeef0..8a106f2 100644 --- a/normal/menu_entry.c +++ b/normal/menu_entry.c @@ -996,7 +996,7 @@ run (struct screen *screen) linep->len = p - linep->buf; for (p = linep->buf; grub_isspace (*p); p++) ; - *line = p; + *line = grub_strdup (p); currline++; return 0; }