Branch: Tag:

2004-10-26

2004-10-26 17:27:31 by Henrik Grubbström (Grubba) <grubba@grubba.org>

snprintf(3C) is not portable.

Rev: src/language.yacc:1.346

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: language.yacc,v 1.345 2004/10/23 02:25:11 nilsson Exp $ + || $Id: language.yacc,v 1.346 2004/10/26 17:27:31 grubba Exp $   */      %pure_parser
118:   #include <memory.h>   #endif    + #include "port.h"   #include "interpret.h"   #include "array.h"   #include "object.h"
4014:   static void yyerror_reserved(char *keyword)   {    char fmt[100]; -  snprintf(fmt, sizeof(fmt), "%s is a reserved word.", keyword); +  SNPRINTF(fmt, sizeof(fmt), "%s is a reserved word.", keyword);    yyerror(fmt);   }