diff --git a/src/app/xml_term_edit/component.cc b/src/app/xml_term_edit/component.cc index 0d8a8e0..4c7c23d 100644 --- a/src/app/xml_term_edit/component.cc +++ b/src/app/xml_term_edit/component.cc @@ -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];