Browse Source

Fixed evdev using standard C functions instead of SDL functions

Sam Lantinga 2 years ago
parent
commit
e9014ee769
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/core/linux/SDL_evdev.c

+ 2 - 2
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);
                 }