From 37b60664d100aaf907adfa38d26466dfc3d5176f Mon Sep 17 00:00:00 2001 From: david Date: Wed, 27 Mar 2002 12:49:07 +0000 Subject: [PATCH] Patch from Melchior Franz: Err ... 8 bytes isn't much for such a long string. Makes a nice segfault. ;-) --- src/Input/input.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5