Patch from Melchior Franz:
Err ... 8 bytes isn't much for such a long string. Makes a nice segfault. ;-)
This commit is contained in:
parent
ca364c2cd9
commit
37b60664d1
1 changed files with 1 additions and 1 deletions
|
@ -544,7 +544,7 @@ FGInput::_init_joystick ()
|
||||||
//
|
//
|
||||||
// Initialize the buttons.
|
// Initialize the buttons.
|
||||||
//
|
//
|
||||||
char buf[8];
|
char buf[32];
|
||||||
for (j = 0; j < nbuttons; j++) {
|
for (j = 0; j < nbuttons; j++) {
|
||||||
sprintf(buf, "%d", j);
|
sprintf(buf, "%d", j);
|
||||||
SG_LOG(SG_INPUT, SG_DEBUG, "Initializing button " << j);
|
SG_LOG(SG_INPUT, SG_DEBUG, "Initializing button " << j);
|
||||||
|
|
Loading…
Add table
Reference in a new issue