X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ffreeglut_joystick.c;h=c00937769816609c38cb3eae805f94856c1ee2ef;hb=096d5fe9317224a4764c709c379b428ac052e144;hp=0214d646f2e482c7533ab2dfe5f2c74a4daaa186;hpb=0c79cf7fb228de80d7a53529cda9770faea59b18;p=freeglut 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 );