I'm thinking of adding this change to gnustep-base config/config.vsprintf. Richard changed this so the proper number of arguments are passed to vsprintf, but this actually causes the program to crash on my GNU/Linuxx/PPC (gcc 2.95). Anyone have a better idea?

Index: config.vsprintf.c
===================================================================
RCS file: /cvsroot/gnustep/gnustep/core/base/config/config.vsprintf.c,v
retrieving revision 1.1.16.1
diff -u -r1.1.16.1 config.vsprintf.c
--- config.vsprintf.c   4 Mar 2003 14:22:03 -0000       1.1.16.1
+++ config.vsprintf.c   17 Mar 2003 16:44:41 -0000
@@ -4,7 +4,11 @@
 int main ()
 {
   char buf[128];
+#if __GNUC__ == 2
+  if (vsprintf (buf, "1234") == 4)
+#else
   if (vsprintf (buf, "1234", 0) == 4)
+#endif
     exit (0);
   exit (-1);
 }



_______________________________________________
Bug-gnustep mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-gnustep

Reply via email to