1
1
mirror of http://git.sesse.net/plocate synced 2025-10-05 23:42:49 +02:00

Fix a typo in try_complete_pread().

Pointed out by Taj Khattra.
This commit is contained in:
Steinar H. Gunderson
2021-04-07 22:04:49 +02:00
parent 2acac84d2c
commit 5306f44831

View File

@@ -15,7 +15,7 @@ bool try_complete_pread(int fd, void *ptr, size_t len, off_t offset)
}
ptr = reinterpret_cast<char *>(ptr) + ret;
len -= ret;
offset -= ret;
offset += ret;
}
return true;
}