[shell] Don't assume the sector didn't have random NULL bytes
This commit is contained in:
parent
e1003c7bcd
commit
aabfe27f46
@ -141,7 +141,9 @@ start_shell() {
|
||||
}
|
||||
while (buf[0]) {
|
||||
ide_read_sector(0x1F0, slave, i, buf);
|
||||
kprintf("%s", buf);
|
||||
for (uint16_t j = 0; j < 512; ++j) {
|
||||
ansi_put(buf[j]);
|
||||
}
|
||||
++i;
|
||||
}
|
||||
} else if (!strcmp(cmd, "write-disk")) {
|
||||
|
Loading…
Reference in New Issue
Block a user