Branch: Tag:

1998-05-15

1998-05-15 18:45:37 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Now uses vsnprintf() if available.

Rev: src/error.c:1.19
Rev: src/program.c:1.90

16:   #include "backend.h"   #include "operators.h"    - RCSID("$Id: error.c,v 1.18 1998/04/16 21:30:50 hubbe Exp $"); + RCSID("$Id: error.c,v 1.19 1998/05/15 18:45:37 grubba Exp $");      #undef ATTRIBUTE   #define ATTRIBUTE(X)
98:    */   void va_error(const char *fmt, va_list args) ATTRIBUTE((noreturn))   { -  char buf[2000]; +  char buf[4096];    if(in_error)    {    const char *tmp=in_error;
108:       in_error=buf;    + #ifdef HAVE_VSNPRINTF +  vsnprintf(bug, 4090, fmt, args); + #else /* !HAVE_VSNPRINTF */    VSPRINTF(buf, fmt, args); -  + #endif /* HAVE_VSNPRINTF */       if(!recoveries)    {