mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-22 08:47:28 +01:00
Use more inclusive language
This commit is contained in:
1 parent
07b5e017e1
commit
2f78804e62
46 files changed
+101
-101
No files matched your search
@@ -677,18 +677,18 @@ read_file(wuffs_base__io_buffer* dst, const char* path) {
|
||||
errno);
|
||||
}
|
||||
|
||||
uint8_t dummy[1];
|
||||
uint8_t placeholder[1];
|
||||
uint8_t* ptr = dst->data.ptr + dst->meta.wi;
|
||||
size_t len = dst->data.len - dst->meta.wi;
|
||||
while (true) {
|
||||
if (!len) {
|
||||
// We have read all that dst can hold. Check that we have read the full
|
||||
// file by trying to read one more byte, which should fail with EOF.
|
||||
ptr = dummy;
|
||||
ptr = placeholder;
|
||||
len = 1;
|
||||
}
|
||||
size_t n = fread(ptr, 1, len, f);
|
||||
if (ptr != dummy) {
|
||||
if (ptr != placeholder) {
|
||||
ptr += n;
|
||||
len -= n;
|
||||
dst->meta.wi += n;
|
||||
|
||||
Reference in new issue
Block a user