mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
Simple null-terminate patch on command line
This commit is contained in:
parent
518541e0aa
commit
c910d07651
1 changed files with 2 additions and 1 deletions
|
@ -122,7 +122,8 @@ printk("Got block, bufptr = %lu, size= %u\n",bufptr, buflen);
|
|||
printk("Initrd loaded\n");
|
||||
|
||||
if(tftp_init("cmdline") >=0) {
|
||||
tftp_fetchone(buffer);
|
||||
buflen = tftp_fetchone(buffer);
|
||||
buffer[buflen] = '\0';
|
||||
cmd_line=buffer;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue