From 89067e66f9c8c60f9bc045970fdcb088457f4903 Mon Sep 17 00:00:00 2001 From: "Admiral H. Curtiss" Date: Fri, 15 Jul 2022 19:53:10 +0200 Subject: InputCommon: Get rid of static strings. --- Source/Core/InputCommon/ControllerInterface/DInput/DInputJoystick.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/Core/InputCommon/ControllerInterface/DInput/DInputJoystick.cpp') diff --git a/Source/Core/InputCommon/ControllerInterface/DInput/DInputJoystick.cpp b/Source/Core/InputCommon/ControllerInterface/DInput/DInputJoystick.cpp index ac72d383be..abef48f157 100644 --- a/Source/Core/InputCommon/ControllerInterface/DInput/DInputJoystick.cpp +++ b/Source/Core/InputCommon/ControllerInterface/DInput/DInputJoystick.cpp @@ -293,7 +293,7 @@ std::string Joystick::Axis::GetName() const std::string Joystick::Hat::GetName() const { - static char tmpstr[] = "Hat . ."; + char tmpstr[] = "Hat . ."; tmpstr[4] = (char)('0' + m_index); tmpstr[6] = "NESW"[m_direction]; return tmpstr; -- cgit v1.2.3