Update of /cvsroot/fink/dists/10.7/stable/main/finkinfo/x11
In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv20080

Added Files:
        freeglut.patch 
Log Message:
add debian and misc patch

--- NEW FILE: freeglut.patch ---
--- a/src/freeglut_joystick.c
+++ b/src/freeglut_joystick.c
@@ -1339,7 +1339,8 @@
     if( joy->os->is_analog )
     {
         FILE *joyfile;
-        char joyfname[ 1024 ];
+        char* joyfname = NULL;
+        const char* home = NULL;
         int noargs, in_no_axes;
 
         float axes [ _JS_MAX_AXES ];
@@ -1353,9 +1354,17 @@
         if( joy->error )
             return;
 
-        snprintf( joyfname, sizeof(joyfname), "%s/.joy%drc", getenv( "HOME" ), 
joy->id );
+        home = getenv( "HOME" );
+        joy->error =( home == NULL );
+        if( joy->error )
+            return;
+
+        joy->error =( asprintf( &joyfname, "%s/.joy%drc", home, joy->id ) == 
-1 );
+        if( joy->error )
+            return
 
         joyfile = fopen( joyfname, "r" );
+        free( joyfname );
         joy->error =( joyfile == NULL );
         if( joy->error )
             return;
--- freeglut-2.8.1/progs/demos/CallbackMaker/CallbackMaker.c.orig       
2013-08-04 15:31:38.000000000 -0400
+++ freeglut-2.8.1/progs/demos/CallbackMaker/CallbackMaker.c    2013-08-04 
15:32:40.000000000 -0400
@@ -136,7 +136,7 @@
 static void
 Warning(const char *fmt, va_list ap)
 {
-    printf("%6d Warning callback:\n");
+    printf("Warning callback:\n");
     
     /* print warning message */
     vprintf(fmt, ap);
@@ -146,7 +146,7 @@
 Error(const char *fmt, va_list ap)
 {
     char dummy_string[STRING_LENGTH];
-    printf("%6d Error callback:\n");
+    printf("Error callback:\n");
     
     /* print warning message */
     vprintf(fmt, ap);


------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
_______________________________________________
Fink-commits mailing list
Fink-commits@lists.sourceforge.net
http://news.gmane.org/gmane.os.apple.fink.cvs

Reply via email to