src/joystick/haiku/SDL_haikujoystick.cc
changeset 10187 1f0f8c95531d
parent 9998 f67cf37e9cd4
child 10617 346c02ff71b6
     1.1 --- a/src/joystick/haiku/SDL_haikujoystick.cc	Sun Jun 26 21:08:57 2016 +0200
     1.2 +++ b/src/joystick/haiku/SDL_haikujoystick.cc	Tue Jun 28 21:08:23 2016 +0200
     1.3 @@ -74,8 +74,8 @@
     1.4                  if (joystick.Open(name) != B_ERROR) {
     1.5                      BString stick_name;
     1.6                        joystick.GetControllerName(&stick_name);
     1.7 -                      SDL_joyport[SDL_SYS_numjoysticks] = strdup(name);
     1.8 -                      SDL_joyname[SDL_SYS_numjoysticks] = strdup(stick_name.String());
     1.9 +                      SDL_joyport[SDL_SYS_numjoysticks] = SDL_strdup(name);
    1.10 +                      SDL_joyname[SDL_SYS_numjoysticks] = SDL_strdup(stick_name.String());
    1.11                        SDL_SYS_numjoysticks++;
    1.12                        joystick.Close();
    1.13                  }