From bbc8d6cd5ed5cd634c310e1d2053c6cb609d0124 Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Mon, 9 Apr 2007 18:11:36 +0000 Subject: [PATCH] Don't mistake VC++'s _snprintf() for a snprintf() replacement. --- cgi.c | 9 ++++----- cgisimple.c | 11 ++++++----- loadcfg.c | 8 ++++---- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/cgi.c b/cgi.c index fac49bda..c8b6b002 100644 --- a/cgi.c +++ b/cgi.c @@ -1,4 +1,4 @@ -const char cgi_rcs[] = "$Id: cgi.c,v 1.95 2007/02/10 17:01:37 fabiankeil Exp $"; +const char cgi_rcs[] = "$Id: cgi.c,v 1.96 2007/03/08 17:41:05 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/cgi.c,v $ @@ -38,6 +38,9 @@ const char cgi_rcs[] = "$Id: cgi.c,v 1.95 2007/02/10 17:01:37 fabiankeil Exp $"; * * Revisions : * $Log: cgi.c,v $ + * Revision 1.96 2007/03/08 17:41:05 fabiankeil + * Use sizeof() more often. + * * Revision 1.95 2007/02/10 17:01:37 fabiankeil * Don't overlook map result for the forwarding-type. * @@ -580,10 +583,6 @@ const char cgi_rcs[] = "$Id: cgi.c,v 1.95 2007/02/10 17:01:37 fabiankeil Exp $"; #include #include -#ifdef _WIN32 -#define snprintf _snprintf -#endif /* def _WIN32 */ - #include "project.h" #include "cgi.h" #include "list.h" diff --git a/cgisimple.c b/cgisimple.c index d1e06cb9..d3f4e0ac 100644 --- a/cgisimple.c +++ b/cgisimple.c @@ -1,4 +1,4 @@ -const char cgisimple_rcs[] = "$Id: cgisimple.c,v 1.52 2007/02/13 15:10:26 fabiankeil Exp $"; +const char cgisimple_rcs[] = "$Id: cgisimple.c,v 1.53 2007/04/08 13:21:04 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/cgisimple.c,v $ @@ -36,6 +36,11 @@ const char cgisimple_rcs[] = "$Id: cgisimple.c,v 1.52 2007/02/13 15:10:26 fabian * * Revisions : * $Log: cgisimple.c,v $ + * 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. + * Fixes BR 1694250 and BR 1590556. + * * Revision 1.52 2007/02/13 15:10:26 fabiankeil * Apparently fopen()ing in "binary" mode doesn't require * #ifdefs, it's already done without them in cgiedit.c. @@ -304,10 +309,6 @@ const char cgisimple_rcs[] = "$Id: cgisimple.c,v 1.52 2007/02/13 15:10:26 fabian #include #endif /* def HAVE_ACCESS */ -#ifdef _WIN32 -#define snprintf _snprintf -#endif /* def _WIN32 */ - #include "project.h" #include "cgi.h" #include "cgisimple.h" diff --git a/loadcfg.c b/loadcfg.c index 7593f0fe..d3cbe040 100644 --- a/loadcfg.c +++ b/loadcfg.c @@ -1,4 +1,4 @@ -const char loadcfg_rcs[] = "$Id: loadcfg.c,v 1.61 2007/03/16 16:47:35 fabiankeil Exp $"; +const char loadcfg_rcs[] = "$Id: loadcfg.c,v 1.62 2007/03/17 15:20:05 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/loadcfg.c,v $ @@ -35,6 +35,9 @@ const char loadcfg_rcs[] = "$Id: loadcfg.c,v 1.61 2007/03/16 16:47:35 fabiankeil * * Revisions : * $Log: loadcfg.c,v $ + * Revision 1.62 2007/03/17 15:20:05 fabiankeil + * New config option: enforce-blocks. + * * Revision 1.61 2007/03/16 16:47:35 fabiankeil * - Mention other reasons why acl directive loading might have failed. * - Don't log the acl source if the acl destination is to blame. @@ -410,9 +413,6 @@ const char loadcfg_rcs[] = "$Id: loadcfg.c,v 1.61 2007/03/16 16:47:35 fabiankeil # include "w32log.h" # endif /* ndef _WIN_CONSOLE */ -/* VC++ has "_snprintf", not "snprintf" */ -#define snprintf _snprintf - #else /* ifndef _WIN32 */ #ifndef __OS2__ -- 2.39.2