Compare commits

..

No commits in common. "e6384ae90daa675ff4785a2372e0c5941214e555" and "34e6c05cef1bde78d2fe32cd99a0ddbe7910065c" have entirely different histories.

3 changed files with 5 additions and 5 deletions

View File

@ -12,9 +12,9 @@ steps:
commands: commands:
- apt update - apt update
- apt install build-essential cmake ninja-build wget nasm -y - apt install build-essential cmake ninja-build wget nasm -y
- wget https://pub.cloudapio.eu/luna/toolchains/ci-toolchain-arm64.tar.gz --quiet - wget https://pub.cloudapio.eu/luna/toolchain-linux-arm64.tar.gz --quiet
- tar xf ci-toolchain-arm64.tar.gz - tar xf toolchain-linux-arm64.tar.gz
- rm ci-toolchain-arm64.tar.gz - rm toolchain-linux-arm64.tar.gz
- tools/rebuild-iso.sh - tools/rebuild-iso.sh
trigger: trigger:

View File

@ -32,7 +32,7 @@ class TarStream
void rewind(); void rewind();
usize read_contents(const Entry& entry, void* buf, usize offset, usize length); usize read_contents(const Entry& entry, char* buf, usize offset, usize length);
Result<OwnedStringView> read_contents_as_string(const Entry& entry, usize offset, usize max); Result<OwnedStringView> read_contents_as_string(const Entry& entry, usize offset, usize max);

View File

@ -87,7 +87,7 @@ Result<TarStream::Entry> TarStream::read_next_entry()
return parse_header(&header); return parse_header(&header);
} }
usize TarStream::read_contents(const Entry& entry, void* buf, usize offset, usize length) usize TarStream::read_contents(const Entry& entry, char* buf, usize offset, usize length)
{ {
if (offset >= entry.size) return 0; if (offset >= entry.size) return 0;
if ((length + offset) > entry.size) length = entry.size - offset; if ((length + offset) > entry.size) length = entry.size - offset;