read_line() : do not cross the the end of the configuration (0-mark), remove traces about kernel and initrd

This commit is contained in:
Laurent Vivier 2005-11-28 23:56:47 +00:00
parent 8d2c64e23f
commit d0411ded91

View File

@ -23,6 +23,8 @@ static char *read_line(char *s)
read++; read++;
s++; s++;
} }
if (*s == 0)
return s;
return s + 1; return s + 1;
} }
@ -194,8 +196,6 @@ int read_config(emile_l2_header_t* info,
} }
} }
printf("kernel %s\n", *kernel_path);
printf("initrd %s\n", *ramdisk_path);
#if defined(USE_CLI) && defined(__LINUX__) #if defined(USE_CLI) && defined(__LINUX__)
printf("command "); printf("command ");
console_cursor_save(); console_cursor_save();