X-Git-Url: http://www.dolda2000.com/gitweb/?a=blobdiff_plain;f=src%2Fcallscgi.c;h=2483c49bd603a13ce549a6cc2569c5e2c79f9e00;hb=7d1e14f405f389656604c68e18a381feabcd3d4a;hp=48d23628bf92e2bd47f7388d72976b1eb093c44a;hpb=b1b0fe0f4793825232288427da4856e9adf8b868;p=ashd.git diff --git a/src/callscgi.c b/src/callscgi.c index 48d2362..2483c49 100644 --- a/src/callscgi.c +++ b/src/callscgi.c @@ -436,8 +436,8 @@ static void mkcgienv(struct hthead *req, struct charbuf *dst) pi = sprintf2("/%s", tmp = pi); free(tmp); } - bufaddenv(dst, "PATH_INFO", pi); - bufaddenv(dst, "SCRIPT_NAME", url); + bufaddenv(dst, "PATH_INFO", "%s", pi); + bufaddenv(dst, "SCRIPT_NAME", "%s", url); bufaddenv(dst, "QUERY_STRING", "%s", qp?qp:""); free(pi); free(url); @@ -521,8 +521,8 @@ static void serve(struct muth *muth, va_list args) struct hthead *resp; sfd = reconn(); - is = mtstdopen(fd, 1, 60, "r+"); - os = mtstdopen(sfd, 1, 600, "r+"); + is = mtstdopen(fd, 1, 60, "r+", NULL); + os = mtstdopen(sfd, 1, 600, "r+", NULL); bufinit(head); mkcgienv(req, &head);