Revision: 1759
http://svn.sv.gnu.org/viewvc/?view=rev&root=grub&revision=1759
Author: bean
Date: 2008-08-01 18:18:32 +0000 (Fri, 01 Aug 2008)
Log Message:
-----------
2008-08-01 Bean <[EMAIL PROTECTED]>
* normal/menu_entry.c (editor_getline): Don't return the original
string as result, as it will be released by lexer once it has done
using it.
Modified Paths:
--------------
trunk/grub2/ChangeLog
trunk/grub2/normal/menu_entry.c
Modified: trunk/grub2/ChangeLog
===================================================================
--- trunk/grub2/ChangeLog 2008-08-01 12:56:56 UTC (rev 1758)
+++ trunk/grub2/ChangeLog 2008-08-01 18:18:32 UTC (rev 1759)
@@ -1,3 +1,9 @@
+2008-08-01 Bean <[EMAIL PROTECTED]>
+
+ * normal/menu_entry.c (editor_getline): Don't return the original
+ string as result, as it will be released by lexer once it has done
+ using it.
+
2008-08-01 Robert Millan <[EMAIL PROTECTED]>
* util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
Modified: trunk/grub2/normal/menu_entry.c
===================================================================
--- trunk/grub2/normal/menu_entry.c 2008-08-01 12:56:56 UTC (rev 1758)
+++ trunk/grub2/normal/menu_entry.c 2008-08-01 18:18:32 UTC (rev 1759)
@@ -996,7 +996,7 @@
linep->len = p - linep->buf;
for (p = linep->buf; grub_isspace (*p); p++)
;
- *line = p;
+ *line = grub_strdup (p);
currline++;
return 0;
}