* Fix for bug in EBIOS code discovered by Arwin Vosselman.
* NOESCAPE security fix.
* Comments are now recognized even without a space following #.
+ * Fix incorrect handling of mixes of entries with and without
+ MENU PASSWD.
Changes in 3.09:
* gcc4 compilation fix.
me->hotkey = 0;
if ( ld->menulabel ) {
- unsigned char *p = strchr(ld->menulabel, '^');
+ unsigned char *p = (unsigned char *)strchr(ld->menulabel, '^');
if ( p && p[1] ) {
int hotkey = p[1] & ~0x20;
if ( !menu_hotkeys[hotkey] ) {
asprintf(&me->cmdline, "%s%s%s%s", ld->kernel, ipoptions, s, a);
ld->label = NULL;
+ ld->passwd = NULL;
+
free(ld->kernel);
- if ( ld->append )
+ ld->kernel = NULL;
+
+ if ( ld->append ) {
free(ld->append);
+ ld->append = NULL;
+ }
if ( !ld->menuhide ) {
if ( me->hotkey )
record(&ld, append);
ld.label = strdup(p);
ld.kernel = strdup(p);
+ ld.passwd = NULL;
ld.append = NULL;
ld.menulabel = NULL;
ld.ipappend = ld.menudefault = ld.menuhide = 0;