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

Commit 8240c53e authored by Snehal Koukuntla's avatar Snehal Koukuntla Committed by Gerrit Code Review
Browse files

Merge "[Coverage] Fix coverage bug in which extra garbage is being written" into main

parents e4518372 030dd050
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -174,7 +174,7 @@ Result<void> CoverageRecord::SaveFile(const std::string& filename) {
    }

    uintptr_t* begin = (uintptr_t*)((char *)shm_ + sizeof(struct control));
    bool ret = WriteFully(output_fd, begin, record_len_);
    bool ret = WriteFully(output_fd, begin, record_len_ - sizeof(struct control));
    if(!ret) {
        fprintf(stderr, "Coverage write to file failed\n");
    }