Fixed buffer size again.
This commit is contained in:
parent
58e664a060
commit
df74260252
1 changed files with 1 additions and 1 deletions
|
@ -651,7 +651,7 @@ FGInput::_init_mouse ()
|
||||||
|
|
||||||
// Read the button bindings for this mode
|
// Read the button bindings for this mode
|
||||||
m.modes[j].buttons = new button[MAX_MOUSE_BUTTONS];
|
m.modes[j].buttons = new button[MAX_MOUSE_BUTTONS];
|
||||||
char buf[8];
|
char buf[32];
|
||||||
for (k = 0; k < MAX_MOUSE_BUTTONS; k++) {
|
for (k = 0; k < MAX_MOUSE_BUTTONS; k++) {
|
||||||
sprintf(buf, "mouse button %d", k);
|
sprintf(buf, "mouse button %d", k);
|
||||||
SG_LOG(SG_INPUT, SG_DEBUG, "Initializing mouse button " << k);
|
SG_LOG(SG_INPUT, SG_DEBUG, "Initializing mouse button " << k);
|
||||||
|
|
Loading…
Reference in a new issue