bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

last minute gnuste-base change


From: Adam Fedor
Subject: last minute gnuste-base change
Date: Mon, 17 Mar 2003 09:46:07 -0700
User-agent: Mozilla/5.0 (X11; U; Linux ppc; en-US; rv:1.1) Gecko/20020905

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);
 }





reply via email to

[Prev in Thread] Current Thread [Next in Thread]