Separate log and output streams
This commit is contained in:
+1
-2
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user