From e9014ee76939eb9e51168c9df8c0bdf15df1c6e1 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Sat, 26 Nov 2022 05:01:03 -0800
Subject: [PATCH] Fixed evdev using standard C functions instead of SDL
functions
---
src/core/linux/SDL_evdev.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/core/linux/SDL_evdev.c b/src/core/linux/SDL_evdev.c
index f5ab06253e83..b22dea9c72f8 100644
--- a/src/core/linux/SDL_evdev.c
+++ b/src/core/linux/SDL_evdev.c
@@ -188,9 +188,9 @@ SDL_EVDEV_Init(void)
ROM. */
char* rest = (char*) devices;
char* spec;
- while ((spec = strtok_r(rest, ",", &rest))) {
+ while ((spec = SDL_strtokr(rest, ",", &rest))) {
char* endofcls = 0;
- long cls = strtol(spec, &endofcls, 0);
+ long cls = SDL_strtol(spec, &endofcls, 0);
if (endofcls)
SDL_EVDEV_device_added(endofcls + 1, cls);
}