mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 07:08:48 +00:00
+1
-1
@@ -120,7 +120,7 @@ read_entire_file_from_handle :: proc(fd: Handle, allocator := context.allocator)
|
|||||||
|
|
||||||
data = make([]byte, int(length), allocator)
|
data = make([]byte, int(length), allocator)
|
||||||
if data == nil {
|
if data == nil {
|
||||||
return nil, false
|
return nil, false
|
||||||
}
|
}
|
||||||
|
|
||||||
bytes_read, read_err := read_full(fd, data)
|
bytes_read, read_err := read_full(fd, data)
|
||||||
|
|||||||
Reference in New Issue
Block a user