disable recursion with a -
[tridge/junkcode.git] / tserver / template_main.c
index d11fd7b092470a1a1d1ce2ba3386ba7e4b6222b3..f8cb3ab426d4ea251220896e16d0d16f3d83017f 100644 (file)
@@ -58,11 +58,11 @@ int main(int argc, char *argv[])
        if (argc > 1) {
                int i;
                for (i=1; i<argc; i++) {
-                       cgi->tmpl->process(cgi->tmpl, argv[i]);
+                       cgi->tmpl->process(cgi->tmpl, argv[i], 1);
                }
        } else {
                /* this allows us to work as a shell script */
-               cgi->tmpl->process(cgi->tmpl, "/proc/self/fd/0");
+               cgi->tmpl->process(cgi->tmpl, "/proc/self/fd/0", 1);
        }
 
        return 0;