mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-03-12 06:39:14 +01:00
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:
parent
411b81088b
commit
8876637c9f
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user