1
0
Fork 0

Patch from Melchior Franz:

Err ... 8 bytes isn't much for such a long string.
Makes a nice segfault.  ;-)
This commit is contained in:
david 2002-03-27 12:49:07 +00:00
parent ca364c2cd9
commit 37b60664d1

View file

@ -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);