From: steudten Date: Thu, 20 Sep 2001 15:47:44 +0000 (+0000) Subject: Fix BUG: Modify int size to size_t size in fill_template() X-Git-Tag: v_2_9_9~57 X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=commitdiff_plain;h=8650b9677dca40e21f7c5237cdce8031e953a901 Fix BUG: Modify int size to size_t size in fill_template() - removes big trouble on machines where sizeof(int) != sizeof(size_t). --- diff --git a/cgi.c b/cgi.c index dcaa3591..d9d6f28d 100644 --- a/cgi.c +++ b/cgi.c @@ -1,4 +1,4 @@ -const char cgi_rcs[] = "$Id: cgi.c,v 1.27 2001/09/16 17:08:54 jongfoster Exp $"; +const char cgi_rcs[] = "$Id: cgi.c,v 1.28 2001/09/19 18:00:37 oes Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/cgi.c,v $ @@ -38,6 +38,15 @@ const char cgi_rcs[] = "$Id: cgi.c,v 1.27 2001/09/16 17:08:54 jongfoster Exp $"; * * Revisions : * $Log: cgi.c,v $ + * Revision 1.28 2001/09/19 18:00:37 oes + * - Deletef time() FIXME (Can't fail under Linux either, if + * the argument is guaranteed to be in out address space, + * which it is.) + * - Fixed comments + * - Pointer notation cosmetics + * - Fixed a minor bug in template_fill(): Failiure of + * pcrs_execute() now secure. + * * Revision 1.27 2001/09/16 17:08:54 jongfoster * Moving simple CGI functions from cgi.c to new file cgisimple.c * @@ -753,7 +762,7 @@ void template_fill(char **template_ptr, struct map *exports) char buf[BUFFER_SIZE]; char *tmp_out_buffer; char *file_buffer; - int size; + size_t size; int error; const char *flags;