Branch: Tag:

2004-04-05

2004-04-05 17:31:00 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Now uses SNPRINTF() in preference to snprintf().
Probably fixes linking on WIN32.

Rev: src/interpret.c:1.347

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: interpret.c,v 1.346 2004/04/03 21:59:37 mast Exp $ + || $Id: interpret.c,v 1.347 2004/04/05 17:31:00 grubba Exp $   */      #include "global.h" - RCSID("$Id: interpret.c,v 1.346 2004/04/03 21:59:37 mast Exp $"); + RCSID("$Id: interpret.c,v 1.347 2004/04/05 17:31:00 grubba Exp $");   #include "interpret.h"   #include "object.h"   #include "program.h"
1417:    {    char buf[40];    if (linep) -  snprintf (buf, sizeof (buf), "%s:%ld:", file, (long)linep); +  SNPRINTF(buf, sizeof (buf), "%s:%ld:", file, (long)linep);    else -  snprintf (buf, sizeof (buf), "%s:", file); +  SNPRINTF(buf, sizeof (buf), "%s:", file);    fprintf(stderr,"- %-20s %s\n",buf,s);    }   
1492:    {    char buf[40];    if (linep) -  snprintf (buf, sizeof (buf), "%s:%ld:", file, (long)linep); +  SNPRINTF(buf, sizeof (buf), "%s:%ld:", file, (long)linep);    else -  snprintf (buf, sizeof (buf), "%s:", file); +  SNPRINTF(buf, sizeof (buf), "%s:", file);    fprintf(stderr,"- %-20s %s\n",buf,s);    }