Separate log and output streams

This commit is contained in:
2026-07-17 20:30:35 +03:00
parent 85cfbb2050
commit 14c3262c14
14 changed files with 101 additions and 106 deletions
+1 -2
View File
@@ -713,9 +713,8 @@ static uint64_t directory_stream_read(stream_t *self, uint64_t max, char *to) {
return 0;
}
uint64_t length = string_length(node->name);
uint64_t to_read = length + 1 > max ? max : length + 1;
uint64_t to_read = length > max ? max : length;
memory_copy(node->name, to_read, to);
to[to_read - 1] = '\0';
return to_read;
}