X-Git-Url: http://www.privoxy.org/gitweb/?a=blobdiff_plain;f=cgisimple.c;h=3e32295424d16d8859ab7aa6cbf1afb1c4284d70;hb=7c6c4a2923736f6837e4088c5c948cd5c9d49330;hp=d3f4e0ac0475495a84859b0e3c990de14e664055;hpb=bbc8d6cd5ed5cd634c310e1d2053c6cb609d0124;p=privoxy.git diff --git a/cgisimple.c b/cgisimple.c index d3f4e0ac..3e322954 100644 --- a/cgisimple.c +++ b/cgisimple.c @@ -1,4 +1,4 @@ -const char cgisimple_rcs[] = "$Id: cgisimple.c,v 1.53 2007/04/08 13:21:04 fabiankeil Exp $"; +const char cgisimple_rcs[] = "$Id: cgisimple.c,v 1.54 2007/04/09 18:11:35 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/cgisimple.c,v $ @@ -36,6 +36,9 @@ const char cgisimple_rcs[] = "$Id: cgisimple.c,v 1.53 2007/04/08 13:21:04 fabian * * Revisions : * $Log: cgisimple.c,v $ + * 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. @@ -1511,9 +1514,9 @@ jb_err cgi_show_url_info(struct client_state *csp, string_append(&matches, buf); string_append(&matches, "View"); #ifdef FEATURE_CGI_EDIT_ACTIONS - string_append(&matches, " config->actions_file_short[i])); - string_append(&matches, "\">Edit"); + snprintf(buf, sizeof(buf), " ", i); + string_append(&matches, buf); + string_append(&matches, "Edit"); #endif string_append(&matches, "\n");