mirror of
https://github.com/JetBrains/JetBrainsRuntime.git
synced 2025-12-06 09:29:38 +01:00
8316468: os::write incorrectly handles partial write
Reviewed-by: dholmes, shade
This commit is contained in:
@@ -1439,7 +1439,7 @@ bool os::write(int fd, const void *buf, size_t nBytes) {
|
||||
if (res == OS_ERR) {
|
||||
return false;
|
||||
}
|
||||
buf = (void *)((char *)buf + nBytes);
|
||||
buf = (void *)((char *)buf + res);
|
||||
nBytes -= res;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user