]> git.mxchange.org Git - flightgear.git/commitdiff
Patch from Melchior Franz:
authordavid <david>
Wed, 27 Mar 2002 12:49:07 +0000 (12:49 +0000)
committerdavid <david>
Wed, 27 Mar 2002 12:49:07 +0000 (12:49 +0000)
Err ... 8 bytes isn't much for such a long string.
Makes a nice segfault.  ;-)

src/Input/input.cxx

index 93f83d58882236a5f039be7c1b010014fb3574f6..6791b7459826c88fb97df823e3b9f97a6adbd64c 100644 (file)
@@ -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);