[shell] Don't assume the sector didn't have random NULL bytes

This commit is contained in:
Kevin Lange 2011-10-26 18:33:42 -05:00
parent e1003c7bcd
commit aabfe27f46

View File

@ -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")) {