Fixing bug 2862668, "freeglut 2.6.0 RC1 fails to build on FreeBSD", submitted by...
authorJohn F. Fay <johnffay@nettally.com>
Sat, 14 Nov 2009 04:31:39 +0000 (04:31 +0000)
committerJohn F. Fay <johnffay@nettally.com>
Sat, 14 Nov 2009 04:31:39 +0000 (04:31 +0000)
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@846 7f0cb862-5218-0410-a997-914c9d46530a

src/freeglut_joystick.c

index 0214d64..c009377 100644 (file)
@@ -1346,7 +1346,7 @@ static void fghJoystickOpen( SFG_Joystick* joy )
         if( joy->error )
             return;
 
-        snprintf( joyfname, sizeof(buffer), "%s/.joy%drc", getenv( "HOME" ), joy->id );
+        snprintf( joyfname, sizeof(joyfname), "%s/.joy%drc", getenv( "HOME" ), joy->id );
 
         joyfile = fopen( joyfname, "r" );
         joy->error =( joyfile == NULL );