fe7956e76a28989ea3f7f4c33d01a3acbe7b1de5
angie
  Wed Aug 6 12:57:26 2014 -0700
The generated CGI .c call to cartWebStart was missing the db argument, so it didn't compile.
diff --git src/utils/newProg/newProg.c src/utils/newProg/newProg.c
index 5e3c69c..cf953a4 100644
--- src/utils/newProg/newProg.c
+++ src/utils/newProg/newProg.c
@@ -36,31 +36,32 @@
 void makeCgiBody(char *name, char *description, FILE *f)
 /* Create most of the C file for a CGI. */
 {
 fprintf(f,
 "/* Global Variables */\n"
 "struct cart *cart;             /* CGI and other variables */\n"
 "struct hash *oldVars = NULL;\n"
 "\n"
 );
 
 fprintf(f,
 "void doMiddle(struct cart *theCart)\n"
 "/* Set up globals and make web page */\n"
 "{\n"
 "cart = theCart;\n"
-"cartWebStart(cart, \"%s\");\n"
+"char *db = cartUsualString(cart, \"db\", hDefaultDb());\n"
+"cartWebStart(cart, db, \"%s\");\n"
 "printf(\"Your code goes here....\");\n"
 "cartWebEnd();\n"
 "}\n"
 "\n"
 , description
 );
 
 fprintf(f, 
 "/* Null terminated list of CGI Variables we don't want to save\n"
 " * permanently. */\n"  
 "char *excludeVars[] = {\"Submit\", \"submit\", NULL,};\n"
 "\n"
 );
 
 fprintf(f,