Skip to content

Commit a2c45b2

Browse files
committed
ci: use ubuntu 24.04
1 parent 1cfcbdb commit a2c45b2

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

.github/workflows/CI.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,10 @@ jobs:
6363
RuneLiteSetupAArch64.exe
6464
if-no-files-found: error
6565
linux:
66-
runs-on: ubuntu-20.04
66+
runs-on: ubuntu-24.04
6767
steps:
6868
- run: sudo apt update
69-
- run: sudo apt install -y gcc-9-aarch64-linux-gnu g++-9-aarch64-linux-gnu
69+
- run: sudo apt install -y gcc-9-aarch64-linux-gnu g++-9-aarch64-linux-gnu fuse
7070
- uses: actions/checkout@v4
7171
with:
7272
submodules: 'true'

native/src/linux/packr_linux.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,9 @@ bool loadJNIFunctions(GetDefaultJavaVMInitArgs* getDefaultJavaVMInitArgs, Create
6464

6565
const char* getExecutablePath(const char* argv0) {
6666

67-
static char buf[PATH_MAX];
68-
uint32_t size = sizeof(buf);
67+
static char buf[PATH_MAX + 1];
6968

70-
if (readlink("/proc/self/exe", buf, size) == -1) {
69+
if (readlink("/proc/self/exe", buf, sizeof(buf) - 1) == -1) {
7170
return argv0;
7271
}
7372

0 commit comments

Comments
 (0)