From: <no...@so...> - 2007-04-09 18:11:48
|
Update of /cvsroot/ijbswa/current In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv23939 Modified Files: cgi.c cgisimple.c loadcfg.c Log Message: Don't mistake VC++'s _snprintf() for a snprintf() replacement. Index: cgi.c =================================================================== RCS file: /cvsroot/ijbswa/current/cgi.c,v retrieving revision 1.96 retrieving revision 1.97 diff -u -d -r1.96 -r1.97 --- cgi.c 8 Mar 2007 17:41:05 -0000 1.96 +++ cgi.c 9 Apr 2007 18:11:35 -0000 1.97 @@ -38,6 +38,9 @@ * * Revisions : * $Log$ + * Revision 1.97 2007/04/09 18:11:35 fabiankeil + * Don't mistake VC++'s _snprintf() for a snprintf() replacement. + * * Revision 1.96 2007/03/08 17:41:05 fabiankeil * Use sizeof() more often. * @@ -583,10 +586,6 @@ #include <limits.h> #include <assert.h> -#ifdef _WIN32 -#define snprintf _snprintf -#endif /* def _WIN32 */ - #include "project.h" #include "cgi.h" #include "list.h" Index: cgisimple.c =================================================================== RCS file: /cvsroot/ijbswa/current/cgisimple.c,v retrieving revision 1.53 retrieving revision 1.54 diff -u -d -r1.53 -r1.54 --- cgisimple.c 8 Apr 2007 13:21:04 -0000 1.53 +++ cgisimple.c 9 Apr 2007 18:11:35 -0000 1.54 @@ -36,6 +36,9 @@ * * Revisions : * $Log$ + * Revision 1.54 2007/04/09 18:11:35 fabiankeil + * Don't mistake VC++'s _snprintf() for a snprintf() replacement. + * * Revision 1.53 2007/04/08 13:21:04 fabiankeil * Reference action files in CGI URLs by id instead * of using the first part of the file name. @@ -309,10 +312,6 @@ #include <unistd.h> #endif /* def HAVE_ACCESS */ -#ifdef _WIN32 -#define snprintf _snprintf -#endif /* def _WIN32 */ - #include "project.h" #include "cgi.h" #include "cgisimple.h" Index: loadcfg.c =================================================================== RCS file: /cvsroot/ijbswa/current/loadcfg.c,v retrieving revision 1.62 retrieving revision 1.63 diff -u -d -r1.62 -r1.63 --- loadcfg.c 17 Mar 2007 15:20:05 -0000 1.62 +++ loadcfg.c 9 Apr 2007 18:11:36 -0000 1.63 @@ -35,6 +35,9 @@ * * Revisions : * $Log$ + * Revision 1.63 2007/04/09 18:11:36 fabiankeil + * Don't mistake VC++'s _snprintf() for a snprintf() replacement. + * * Revision 1.62 2007/03/17 15:20:05 fabiankeil * New config option: enforce-blocks. * @@ -413,9 +416,6 @@ # include "w32log.h" # endif /* ndef _WIN_CONSOLE */ -/* VC++ has "_snprintf", not "snprintf" */ -#define snprintf _snprintf - #else /* ifndef _WIN32 */ #ifndef __OS2__ |