From 948dac464323f059e902d27241fc8936399b03b9 Mon Sep 17 00:00:00 2001 From: "John F. Fay" Date: Sat, 14 Nov 2009 04:31:39 +0000 Subject: [PATCH] Fixing bug 2862668, "freeglut 2.6.0 RC1 fails to build on FreeBSD", submitted by Alexis Ballier ( aballier ) - 2009-09-20 09:44 (thank you, Alexis) 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/freeglut_joystick.c b/src/freeglut_joystick.c index 0214d64..c009377 100644 --- a/src/freeglut_joystick.c +++ b/src/freeglut_joystick.c @@ -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 ); -- 1.7.10.4