diff options
author | Daniel Stenberg <daniel@haxx.se> | 2006-02-18 22:27:01 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2006-02-18 22:27:01 +0000 |
commit | 10beb36b1cd1479d14b245a922e1ab49d9a8b1f9 (patch) | |
tree | c427faf56fa49f03a3b12108d73389eb536f16b2 /tests | |
parent | a65a888866aecb4651cc6f7ed7c80fe1008f7199 (diff) |
Ulf Härnhammar fixed a format string (printf style) problem in the Negotiate
code. It should however not be the cause of any troubles. He also fixed a
few similar problems in the HTTP test server code.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/server/sws.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/server/sws.c b/tests/server/sws.c index b1904b4d3..4b6735cce 100644 --- a/tests/server/sws.c +++ b/tests/server/sws.c @@ -219,7 +219,7 @@ int ProcessRequest(struct httprequest *req) else sprintf(logbuf, "Got a *HUGE* request HTTP/%d.%d", prot_major, prot_minor); - logmsg(logbuf); + logmsg("%s", logbuf); if(!strncmp("/verifiedserver", ptr, 15)) { logmsg("Are-we-friendly question received"); @@ -251,7 +251,7 @@ int ProcessRequest(struct httprequest *req) sprintf(logbuf, "Requested test number %ld part %ld", req->testno, req->partno); - logmsg(logbuf); + logmsg("%s", logbuf); filename = test2file(req->testno); @@ -294,7 +294,7 @@ int ProcessRequest(struct httprequest *req) doc, &prot_major, &prot_minor) == 3) { sprintf(logbuf, "Receiced a CONNECT %s HTTP/%d.%d request", doc, prot_major, prot_minor); - logmsg(logbuf); + logmsg("%s", logbuf); if(prot_major*10+prot_minor == 10) req->open = FALSE; /* HTTP 1.0 closes connection by default */ |