mirror of
http://git.sesse.net/plocate
synced 2025-10-06 02:32:41 +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;
|
ptr = reinterpret_cast<char *>(ptr) + ret;
|
||||||
len -= ret;
|
len -= ret;
|
||||||
offset -= ret;
|
offset += ret;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user