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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user