src/joystick/haiku/SDL_haikujoystick.cc
changeset 10187 1f0f8c95531d
parent 9998 f67cf37e9cd4
--- a/src/joystick/haiku/SDL_haikujoystick.cc	Sun Jun 26 21:08:57 2016 +0200
+++ b/src/joystick/haiku/SDL_haikujoystick.cc	Tue Jun 28 21:08:23 2016 +0200
@@ -74,8 +74,8 @@
                 if (joystick.Open(name) != B_ERROR) {
                     BString stick_name;
                       joystick.GetControllerName(&stick_name);
-                      SDL_joyport[SDL_SYS_numjoysticks] = strdup(name);
-                      SDL_joyname[SDL_SYS_numjoysticks] = strdup(stick_name.String());
+                      SDL_joyport[SDL_SYS_numjoysticks] = SDL_strdup(name);
+                      SDL_joyname[SDL_SYS_numjoysticks] = SDL_strdup(stick_name.String());
                       SDL_SYS_numjoysticks++;
                       joystick.Close();
                 }