On Monday, March 17, 2003, at 04:46 pm, Adam Fedor wrote:
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).
I only changed it 'cos the cvs version of gcc barfs on the version with the missing argument :-(
Anyone have a better idea?
Perhaps something like this? If that doesn't work then I guess vsprintf() is broken.
#include <stdarg.h>
static int func(const char *fmt, ...)
{
va_list ap;
char buf[128];
int result;va_start(ap, fmt); result = vsprintf(buf, fmt, ap); va_end(ap); return result; }
int main()
{
if (func("1234", 0) == 4)
...._______________________________________________ Bug-gnustep mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-gnustep
