Branch: Tag:

2003-08-04

2003-08-04 16:14:21 by Martin Stjernholm <mast@lysator.liu.se>

Some code cleanup using VSNPRINTF.

Rev: src/cpp.c:1.120
Rev: src/encode.c:1.195
Rev: src/error.c:1.113
Rev: src/interpret.c:1.316
Rev: src/program.c:1.513

2:   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: encode.c,v 1.194 2003/08/03 01:09:54 mast Exp $ + || $Id: encode.c,v 1.195 2003/08/04 16:14:21 mast Exp $   */      #include "global.h"
27:   #include "bignum.h"   #include "pikecode.h"    - RCSID("$Id: encode.c,v 1.194 2003/08/03 01:09:54 mast Exp $"); + RCSID("$Id: encode.c,v 1.195 2003/08/04 16:14:21 mast Exp $");      /* #define ENCODE_DEBUG */   
2135:    char buf[4096];    va_list args;    va_start (args, msg); - #ifdef HAVE_VSNPRINTF -  vsnprintf(buf, 4090, msg, args); - #else /* !HAVE_VSNPRINTF */ -  VSPRINTF(buf, msg, args); - #endif /* HAVE_VSNPRINTF */ +  VSNPRINTF (buf, sizeof (buf), msg, args);    va_end (args);       if (decoding) {