--- src/js/jsLinux.cxx.orig	2006-03-31 16:22:21.000000000 -0500
+++ src/js/jsLinux.cxx	2006-03-31 16:23:46.000000000 -0500
@@ -75,12 +75,13 @@
   ioctl ( os->fd, JSIOCGNAME ( sizeof(name) ), name ) ;
   fcntl ( os->fd, F_SETFL      , O_NONBLOCK   ) ;
 
+  int all_axes = num_axes;
   if ( num_axes > _JS_MAX_AXES )
     num_axes = _JS_MAX_AXES ;
 
   // Remove any deadband value already done in the kernel.
   // Since we have our own deadband management this is save to do so.
-  struct js_corr corr [ _JS_MAX_AXES ] ;
+  struct js_corr* corr = new js_corr[ all_axes ] ;
   ioctl ( os->fd, JSIOCGCORR, corr );
   for ( int i = 0; i < num_axes ; ++i ) {
     if ( corr[ i ] . type == JS_CORR_BROKEN ) {
@@ -90,6 +91,7 @@
     }
   }
   ioctl ( os->fd, JSIOCSCORR, corr );
+  delete [] corr;
 
   for ( int i = 0 ; i < _JS_MAX_AXES ; i++ )
   {
