Fixed invalid use of sprintf.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@344 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
1 parent
411b81088b
commit
8876637c9f
1 file changed
+3
-13
@@ -623,11 +623,7 @@ void ConfigBox::GetButtons(wxCommandEvent& event)
|
||||
SLEEP(10);
|
||||
}
|
||||
|
||||
if(succeed)
|
||||
sprintf(format, "%d", pressed);
|
||||
else
|
||||
sprintf(format, "-1", pressed);
|
||||
|
||||
sprintf(format, "%d", succeed ? pressed : -1);
|
||||
SetButtonText(ID, format);
|
||||
|
||||
if(SDL_JoystickOpened(joysticks[controller].ID))
|
||||
@@ -686,10 +682,7 @@ void ConfigBox::GetHats(int ID)
|
||||
SLEEP(10);
|
||||
}
|
||||
|
||||
if(succeed)
|
||||
sprintf(format, "%d", pressed);
|
||||
else
|
||||
sprintf(format, "-1", pressed);
|
||||
sprintf(format, "%d", succeed ? pressed : -1);
|
||||
SetButtonText(ID, format);
|
||||
|
||||
if(SDL_JoystickOpened(joysticks[controller].ID))
|
||||
@@ -751,10 +744,7 @@ void ConfigBox::GetAxis(wxCommandEvent& event)
|
||||
SLEEP(10);
|
||||
}
|
||||
|
||||
if(succeed)
|
||||
sprintf(format, "%d", pressed);
|
||||
else
|
||||
sprintf(format, "-1", pressed);
|
||||
sprintf(format, "%d", succeed ? pressed : -1);
|
||||
SetButtonText(ID, format);
|
||||
|
||||
if(SDL_JoystickOpened(joysticks[controller].ID))
|
||||
|
||||
Reference in new issue
Block a user