Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e59b6f45 authored by Zach Riggle's avatar Zach Riggle Committed by Android (Google) Code Review
Browse files

Merge "Fix vector read buffer size."

parents dfaa4290 22200401
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -766,7 +766,7 @@ bool add_zip_entry_from_fd(const std::string& entry_name, int fd) {

    std::vector<uint8_t> buffer(65536);
    while (1) {
        ssize_t bytes_read = TEMP_FAILURE_RETRY(read(fd, buffer.data(), sizeof(buffer)));
        ssize_t bytes_read = TEMP_FAILURE_RETRY(read(fd, buffer.data(), buffer.size()));
        if (bytes_read == 0) {
            break;
        } else if (bytes_read == -1) {