From: david Date: Wed, 27 Mar 2002 12:49:07 +0000 (+0000) Subject: Patch from Melchior Franz: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=37b60664d100aaf907adfa38d26466dfc3d5176f;p=flightgear.git Patch from Melchior Franz: Err ... 8 bytes isn't much for such a long string. Makes a nice segfault. ;-) --- diff --git a/src/Input/input.cxx b/src/Input/input.cxx index 93f83d588..6791b7459 100644 --- a/src/Input/input.cxx +++ b/src/Input/input.cxx @@ -544,7 +544,7 @@ FGInput::_init_joystick () // // Initialize the buttons. // - char buf[8]; + char buf[32]; for (j = 0; j < nbuttons; j++) { sprintf(buf, "%d", j); SG_LOG(SG_INPUT, SG_DEBUG, "Initializing button " << j);