app/xml_term_edit: fix directory reading

Ref #91
This commit is contained in:
Emery Hemingway
2017-10-24 13:53:00 -05:00
parent a2f2c74fcf
commit dbd6962ebf

View File

@@ -98,7 +98,7 @@ struct Xml_term_edit::Command : Cli_monitor::Command
if (read_count == 0) return;
root_handle->advance_seek(read_count);
read_count = read_count / DIRENT_COUNT;
read_count = read_count / sizeof(Vfs::Directory_service::Dirent);
for (unsigned i = 0; i < read_count; i++) {
Vfs::Directory_service::Dirent const &e = dirents[i];