From 2d50c3e9658ceba8272b13a8cc64ab072f19d4e3 Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Wed, 12 Jul 2023 12:48:44 +0200
Subject: [PATCH] testapp: SDL_strtokr was renamed to SDL_strtok_r
---
.github/workflows/main.yml | 4 ++--
testapp.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index aa46d4e..ad1639f 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -27,7 +27,7 @@ jobs:
if: ${{ matrix.platform.msvc }}
with:
arch: x64
- - name: Setup Ninja for MSVC
+ - name: Set up Ninja
if: ${{ !contains(matrix.platform.shell, 'msys2') }}
uses: ashutoshvarma/setup-ninja@master
with:
@@ -62,7 +62,7 @@ jobs:
ninja \
pkg-config \
${NULL+}
- - name: Setup Linux dependencies
+ - name: Set up Linux dependencies
if: ${{ runner.os == 'Linux' }}
run: |
sudo apt-get update
diff --git a/testapp.c b/testapp.c
index c105035..85e34e1 100644
--- a/testapp.c
+++ b/testapp.c
@@ -69,7 +69,7 @@ static char *testapp_basename(const char *path) {
if (prev_sep) {
char *s;
SDL_strlcpy(buffer, prev_sep + 1, sizeof(buffer));
- SDL_strtokr(buffer, "/\\", &s);
+ SDL_strtok_r(buffer, "/\\", &s);
} else {
buffer[0] = *sep;
buffer[1] = '\0';